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]

[RFA:] gdbinit.in: macros for dumping BB and bitmap.


These were of help when investigating PR rtl-optimization/17933
and I remember I did something similar to pbb at an earlier
occasion.

	* gdbinit.in (pbb, pbm): New macros.

Index: gdbinit.in
===================================================================
RCS file: /mnt/auto/localgcccvs/gcc/gcc/gdbinit.in,v
retrieving revision 1.8
diff -u -p -r1.8 gdbinit.in
--- gdbinit.in	2 Aug 2004 19:36:57 -0000	1.8
+++ gdbinit.in	31 Oct 2004 00:56:59 -0000
@@ -113,6 +113,22 @@ In cc1plus, print the current binding st
 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

brgds, H-P


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