Patch for .gdbinit
Andreas Schwab
schwab@issan.informatik.uni-dortmund.de
Mon Mar 15 01:28:00 GMT 1999
gdb will complain that it cannot put a breakpoint on abort because the
compilers do not reference it any more unless USE_SYSTEM_ABORT is
defined. The command to set the breakpoint should be put at the end of
.gdbinit so that the other commands are still executed.
1999-03-14 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* .gdbinit: Move command to put breakpoint at abort to end of file
so that gdb does not bail out early.
--- egcs-2.93/gcc/.gdbinit.~2~ Mon May 4 22:03:31 1998
+++ egcs-2.93/gcc/.gdbinit Sun Mar 14 12:01:27 1999
@@ -86,10 +86,6 @@
including the global binding level.
end
-# Don't let abort actually run, as it will make
-# stdio stop working and therefore the `pr' command below as well.
-b abort
-
# Put breakpoints at exit and fancy_abort in case abort is mapped
# to either fprintf/exit or fancy_abort.
b exit
@@ -98,3 +94,9 @@
# 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
+
+# Don't let abort actually run, as it will make
+# stdio stop working and therefore the `pr' command above as well.
+# Put this last because gcc does not reference it any more unless
+# USE_SYSTEM_ABORT is defined, so gdb may complain and bail out.
+b abort
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org
More information about the Gcc-patches
mailing list