[LNO, mainline] gdbinit.in macros : pdn_ssa, pcfdn

Devang Patel dpatel@apple.com
Wed Jun 9 06:26:00 GMT 2004


2004-06-08  Devang Patel  <dpatel@apple.com>

         * gdbinit.in (pdn_ssa, pcfdn): New macros.

Using them since last few weeks.

--
Devang


Index: gdbinit.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gdbinit.in,v
retrieving revision 1.2.16.4
diff -Idpatel.pbxuser -c -3 -p -r1.2.16.4 gdbinit.in
*** gdbinit.in  28 Oct 2003 14:56:18 -0000      1.2.16.4
--- gdbinit.in  9 Jun 2004 04:31:53 -0000
*************** document pdn
*** 76,81 ****
--- 76,101 ----
   Print the name of the decl-node that is $.
   end

+ define pdn_ssa
+ output $->ssa_name.var->decl.name->identifier.id.str
+ echo _
+ output $->ssa_name.version
+ echo \n
+ end
+
+ document pdn_ssa
+ Print the name of SSA variable that is $.
+ end
+
+ define pcfdn
+ p current_function_decl
+ pdn
+ end
+
+ document pcfdn
+ Print the name of current function decl node.
+ end
+
   define ptn
   output $.type.name->decl.name->identifier.id.str
   echo \n



More information about the Gcc-patches mailing list