comp.lang.ada
 help / color / mirror / Atom feed
* gdb will not "catch exception" or "catch exception unhandled"
@ 2011-10-06 10:48 Jerry
  2011-10-06 10:57 ` Simon Wright
  0 siblings, 1 reply; 11+ messages in thread
From: Jerry @ 2011-10-06 10:48 UTC (permalink / raw)


I'm having considerable difficulty getting gdb to break on exceptions;
in fact, I can't get it to work at all.

I'm using the AdaCore 2010 version on OS X 10.6.8, in Terminal.app:

GNU gdb (GDB) 7.1 for GNAT GPL 2010 (20100603) [rev=gdb-7.1-ref-90-
g6d5b58a]
This GDB was configured as "x86_64-apple-darwin9.6.0".

I don't think this is related, but FWIW, this happens every time I use
gdb from a terminal session (not GPS):

unable to read unknown load command 0x1a
warning: `/Volumes/Data/Builds/unix/gtk2.new/bld/pango/.libs/
libpangocairo_1_0_la-module-defs-atsui.o': can't open to read symbols:
No such file or directory.

except that there a a bazillion such gtk-related warnings. /Volumes/
Data is not my computer, but I do have gtk installed. I suppose this
is GPS-related so I don't worry about it too much.

So here's the problem. When I start a debugging session and type
catch exception
or
catch exception unhandled

gdb complains that I have to start my program running first. So I set
a breakpoint on an early line from where I type one of the above
commands, and then it accepts either command. But then my program
bombs a little later with "bus error" while awaiting input from the
keyboard for some user data.

I am able to debug normally if I don't try to catch exceptions.

Any ideas? Would I have better luck with the 2011 AdaCore version?

Jerry



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-10-14 22:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-06 10:48 gdb will not "catch exception" or "catch exception unhandled" Jerry
2011-10-06 10:57 ` Simon Wright
2011-10-07  0:22   ` Jerry
2011-10-07 16:34     ` Simon Wright
2011-10-08  3:54       ` Jerry
2011-10-08  8:23         ` Simon Wright
2011-10-12  2:24           ` Jerry
2011-10-12  6:45             ` Simon Wright
2011-10-13 22:39               ` Jerry
2011-10-14  7:46                 ` Simon Wright
2011-10-14 22:40                   ` Jerry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox