Commit 7c83619c by Martin Liska Committed by Martin Liska

gdbinit: add a new command and fix one

2019-05-30  Martin Liska  <mliska@suse.cz>

	* gdbinit.in: Fix 'ptc' command.  Add trt
	that prints TREE_TYPE($).

From-SVN: r271763
parent 7797a622
2019-05-30 Martin Liska <mliska@suse.cz>
* gdbinit.in: Fix 'ptc' command. Add trt
that prints TREE_TYPE($).
2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com> 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
Alan Modra <amodra@gmail.com> Alan Modra <amodra@gmail.com>
......
...@@ -113,7 +113,7 @@ Works only when an inferior is executing. ...@@ -113,7 +113,7 @@ Works only when an inferior is executing.
end end
define ptc define ptc
output (enum tree_code) $.common.code output (enum tree_code) $.base.code
echo \n echo \n
end end
...@@ -201,6 +201,14 @@ document pcfun ...@@ -201,6 +201,14 @@ document pcfun
Print current function. Print current function.
end end
define trt
print ($.typed.type)
end
document trt
Print TREE_TYPE of the tree node that is $
end
define break-on-diagnostic define break-on-diagnostic
break diagnostic_show_locus break diagnostic_show_locus
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment