This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/11385] cannot catch Ada exceptions


http://sourceware.org/bugzilla/show_bug.cgi?id=11385

--- Comment #3 from Simon Wright <simon at pushface dot org> 2011-10-19 19:55:27 UTC ---
When 'break __gnat_debug_raise_exception' finds the symbol, it actually finds
it in lookup_minimal_symbol() in minsyms.c, after attempts via lookup_symbol()
have failed. The backtrace is

#0  lookup_minimal_symbol (name=0x7fff5fbfee00 "__gnat_debug_raise_exception",
sfile=0x0, objf=0x0) at minsyms.c:299
#1  0x000000010017a41a in decode_variable (copy=0x7fff5fbfee00
"__gnat_debug_raise_exception", funfirstline=1, canonical=0x7fff5fbff208,
file_symtab=0x0) at linespec.c:2125
#2  0x00000001001777d4 in decode_line_1 (argptr=0x7fff5fbff2d0, funfirstline=1,
default_symtab=0x0, default_line=0, canonical=0x7fff5fbff208) at
linespec.c:1072
#3  0x0000000100102e9e in parse_breakpoint_sals (address=0x7fff5fbff2d0,
sals=0x7fff5fbff260, canonical=0x7fff5fbff208) at breakpoint.c:7591
#4  0x0000000100103be2 in create_breakpoint (gdbarch=0x1010a5a10,
arg=0x100a0a1ce "", cond_string=0x0, thread=0, parse_condition_and_thread=1,
tempflag=0, type_wanted=bp_breakpoint, ignore_count=0,
pending_break_support=AUTO_BOOLEAN_AUTO, ops=0x1005f74c0, from_tty=1,
enabled=1, internal=0) at breakpoint.c:7825

Can we alter the check in ada-lang.c to use lookup_minimal_symbol()? What makes
it a minimal symbol when compiled by Ada (s-except.adb) rather than C (my hi.c,
in Comment 2)?

-- 
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.


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