]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
wrong "catch exception" error message when finding trampoline msym.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 1 Oct 2013 09:21:41 +0000 (09:21 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 1 Oct 2013 09:21:41 +0000 (09:21 +0000)
commit1c8e84b0827ace271c460abcc13df9414304cc09
tree4fadafa8185dd7808a2bf9c0c46e3cc84215aba5
parentce63849fab6394d044e102e3a27a42764460904b
wrong "catch exception" error message when finding trampoline msym.

When building the program with the shared GNAT runtime, the debugger
is unable to insert Ada exception catchpoints until that runtime
has been mapped to memory. In other words, we expect the user to start
the program first, before attempting to insert that catchpoint.

The detection mechanism that tries to provide some useful tips to
the user fails when the program itself contains a trampoline symbol
matching the symbol that the catchpoint is trying to use. This
results in the following error message:

    (gdb) catch exception
    Your Ada runtime appears to be missing some debugging information.
    Cannot insert Ada exception catchpoint in this configuration.

Instead, we expected the following error message:

    (gdb) catch exception
    Unable to insert catchpoint. Try to start the program first.

gdb/ChangeLog:

        * ada-lang.c (ada_has_this_exception_support): Ignore
        mst_solib_trampoline minimal symbols.
gdb/ChangeLog
gdb/ada-lang.c