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]

tweak gdbinit.in


On ia64, for some reason gdb can't look up "exit" until after
libc is loaded, which means that .gdbinit errors out before
setting any breakpoints.  Which typically means I wind up 
running the test case twice before I can get the program to 
stop.  Which is annoying.

Reordering the commands means gdb always at least sets the
break on fancy_abort, which is good for most cases.


r~


        * gdbinit.in: Move break on exit after break on fancy_abort.

Index: gdbinit.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gdbinit.in,v
retrieving revision 1.1
diff -c -p -d -r1.1 gdbinit.in
*** gdbinit.in	2001/02/16 11:12:46	1.1
--- gdbinit.in	2001/08/21 08:52:13
*************** end
*** 88,94 ****
  
  # Put breakpoints at exit and fancy_abort in case abort is mapped
  # to either fprintf/exit or fancy_abort.
- b exit
  b fancy_abort
  
  # Make gdb complain about symbol reading errors.  This is so that gcc
--- 88,93 ----
*************** set complaints 20
*** 99,102 ****
--- 98,102 ----
  # 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 exit
  b abort


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