This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug ada/11385] cannot catch Ada exceptions
- From: "simon at pushface dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 19 Oct 2011 14:17:29 +0000
- Subject: [Bug ada/11385] cannot catch Ada exceptions
- Auto-submitted: auto-generated
- References: <bug-11385-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11385
Simon Wright <simon at pushface dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simon at pushface dot org
--- Comment #1 from Simon Wright <simon at pushface dot org> 2011-10-19 14:17:29 UTC ---
I find the same with the GDB git tree (at commit
4b8a2e28391c990494a9eb60adcbd840af952fe6, Wed Oct 19 07:17:11 2011 +0000) on
Mac OS X Lion, debugging a GCC 4.6.0 program.
I think there's something about the way ada-lang.c sniffs for the Ada-specific
symbols that fails to find the required symbol (it looks for
__gnat_debug_raise_exception, in s-except.o), though I haven't yet been able to
spot any difference; the arguments passed to lookup_symbol_aux() look the same.
Should I dig deeper?
If I first set an ordinary breakpoint on that symbol
(gdb) break __gnat_debug_raise_exception
then "catch exception" works!
This problem doesn't happen with GNAT GPL 2011-generated code, which is based
on GCC 4.5.3.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.