diff options
author | Martin Liska <mliska@suse.cz> | 2019-05-30 09:50:39 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-05-30 07:50:39 +0000 |
commit | 7c83619cd6492080ae25313b88f7b9052908681b (patch) | |
tree | faf66a7be6322015ed793e0592b52b766048b93f /gcc | |
parent | 7797a622445d27891471141a2385c42401ccc099 (diff) | |
download | gcc-7c83619cd6492080ae25313b88f7b9052908681b.zip gcc-7c83619cd6492080ae25313b88f7b9052908681b.tar.gz gcc-7c83619cd6492080ae25313b88f7b9052908681b.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gdbinit.in | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc1b6b4..ecbb87f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> Alan Modra <amodra@gmail.com> diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index e16c3c8..440fd25 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -113,7 +113,7 @@ Works only when an inferior is executing. end define ptc -output (enum tree_code) $.common.code +output (enum tree_code) $.base.code echo \n end @@ -201,6 +201,14 @@ document pcfun Print current function. end +define trt +print ($.typed.type) +end + +document trt +Print TREE_TYPE of the tree node that is $ +end + define break-on-diagnostic break diagnostic_show_locus end |