This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]