This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

new pdie utility macro


Hi.  This is an addendum to
http://sourceware.org/ml/gdb-patches/2008-09/msg00561.html

Ok to check in?
[assuming the other patch is.  btw, ping ...]

2008-10-04  Doug Evans  <dje@google.com>

	* gdbinit.in (pdie): New macro.

Index: gdbinit.in
===================================================================
RCS file: /cvs/src/src/gdb/gdbinit.in,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 gdbinit.in
--- gdbinit.in	20 Jan 2004 09:29:16 -0000	1.3
+++ gdbinit.in	4 Oct 2008 20:55:12 -0000
@@ -15,3 +15,20 @@ dir @srcdir@/../bfd
 dir @srcdir@
 dir .
 set prompt (top-gdb) 
+
+define pdie
+  if $argc == 1
+    call dump_die ($arg0, 10)
+  else
+    if $argc == 2
+      call dump_die ($arg0, $arg1)
+    else
+      printf "Syntax: pdie die [depth]\n"
+    end
+  end
+end
+
+document pdie
+Pretty print a DWARF DIE.
+Syntax: pdie die [depth]
+end


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