diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index e16c3c8ef87..81c65d2e7b4 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 tt +print ($.typed.type) +end + +document tt +Print TREE_TYPE of the tree node that is $ +end + define break-on-diagnostic break diagnostic_show_locus end