C90 prototype updates.
[gcc.git] / gcc / gdbinit.in
index ccc3ad8787f987351f123d6ecfd60ea7bedb19d7..ccc6504dda785b5e93627ac6485fb649d7523cd4 100644 (file)
@@ -31,6 +31,15 @@ Print the full structure of the tree that is $.
 Works only when an inferior is executing.
 end
 
+define pct
+set debug_c_tree ($)
+end
+
+document pct
+Print the tree that is $ in C syntax.
+Works only when an inferior is executing.
+end
+
 define ptc
 output (enum tree_code) $.common.code
 echo \n
@@ -41,7 +50,7 @@ Print the tree-code of the tree node that is $.
 end
 
 define pdn
-output $.decl.name->identifier.pointer
+output $.decl.name->identifier.id.str
 echo \n
 end
 
@@ -50,7 +59,7 @@ Print the name of the decl-node that is $.
 end
 
 define ptn
-output $.type.name->decl.name->identifier.pointer
+output $.type.name->decl.name->identifier.id.str
 echo \n
 end
 
@@ -70,7 +79,7 @@ Print the rtx-code and machine mode of the rtx that is $.
 end
 
 define pi
-print $.fld[0].rtx@7
+print $.u.fld[0].rtx@7
 end
 
 document pi
@@ -88,7 +97,6 @@ end
 
 # Put breakpoints at exit and fancy_abort in case abort is mapped
 # to either fprintf/exit or fancy_abort.
-b exit
 b fancy_abort
 
 # Make gdb complain about symbol reading errors.  This is so that gcc
@@ -99,4 +107,5 @@ set complaints 20
 # stdio stop working and therefore the `pr' command above as well.
 # Put this last because gcc does not reference it any more unless
 # USE_SYSTEM_ABORT is defined, so gdb may complain and bail out.
+b exit
 b abort