From: dje@google.com (Doug Evans)
To: gdb-patches@sourceware.org
Subject: new pdie utility macro
Date: Sat, 04 Oct 2008 21:03:00 -0000 [thread overview]
Message-ID: <20081004210246.50FE91C78FA@localhost> (raw)
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
next reply other threads:[~2008-10-04 21:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-04 21:03 Doug Evans [this message]
2008-10-05 16:05 ` Daniel Jacobowitz
2008-10-05 16:08 ` Daniel Jacobowitz
2008-10-05 19:19 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081004210246.50FE91C78FA@localhost \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox