This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gdbinit script patch
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 19 Jul 2004 15:10:52 +1000
- Subject: gdbinit script patch
Is this of any use? I find it useful and gas does something similar.
Ben
2004-07-19 Ben Elliston <bje@au.ibm.com>
* gdbinit.in: Set a breakpoint on internal_error.
Index: gdbinit.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gdbinit.in,v
retrieving revision 1.6
diff -u -c -r1.6 gdbinit.in
cvs diff: conflicting specifications of output style
*** gdbinit.in 13 May 2004 06:39:42 -0000 1.6
--- gdbinit.in 19 Jul 2004 05:09:34 -0000
***************
*** 117,122 ****
--- 117,125 ----
# to either fprintf/exit or fancy_abort.
b fancy_abort
+ # Put a breakpoint on internal_error to help with debugging ICEs.
+ b internal_error
+
# Make gdb complain about symbol reading errors. This is so that gcc
# developers can see and fix bugs in gcc debug output.
set complaints 20