aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2004-11-09 09:36:05 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2004-11-09 09:36:05 +0000
commit55a9c4b2fce38ae2459976fa912cd77071f77f4b (patch)
tree923e36e89625440e173b6276dd5044eed6dfad9f /gcc
parentdf95526be1b070f6dab3167f362056f4c2c43cfd (diff)
downloadgcc-55a9c4b2fce38ae2459976fa912cd77071f77f4b.zip
gcc-55a9c4b2fce38ae2459976fa912cd77071f77f4b.tar.gz
gcc-55a9c4b2fce38ae2459976fa912cd77071f77f4b.tar.bz2
* gdbinit.in (pbb, pbm): New macros.
From-SVN: r90336
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gdbinit.in16
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6af64c6..7a87c1c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * gdbinit.in (pbb, pbm): New macros.
+
2004-11-08 Jeff Law <law@redhat.com>
* cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index a7ad22c..b3c25ac 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -113,6 +113,22 @@ In cc1plus, print the current binding stack, frame by frame, up to and
including the global binding level.
end
+define pbb
+set dump_bb ($, stderr, 0)
+end
+
+document pbb
+Dump the basic block that is in $, including rtx.
+end
+
+define pbm
+set bitmap_print (stderr, $, "", "\n")
+end
+
+document pbm
+Dump the bitmap that is in $ as a comma-separated list of numbers.
+end
+
# Put breakpoints at exit and fancy_abort in case abort is mapped
# to either fprintf/exit or fancy_abort.
b fancy_abort