OSDN Git Service

Warn if missing debug info for Ada exception catchpoints
authorbrobecke <brobecke>
Sun, 11 Dec 2011 17:36:09 +0000 (17:36 +0000)
committerbrobecke <brobecke>
Sun, 11 Dec 2011 17:36:09 +0000 (17:36 +0000)
commitd74680670ae4b83001b70d98466011671de8bdea
tree0811bb3d16fe4d5c8707da4ff980aef19e360c5d
parentedfb2d068f04c6c128395b5d02602bfbcc7cc570
Warn if missing debug info for Ada exception catchpoints

This patch should help the user understand why the debugger is not
able to insert Ada exception catchpoints when the Ada runtime was
stripped of debugging info, as is often the case on many GNU/Linux
distros:

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

gdb/ChangeLog:

        * ada-lang.c (ada_has_this_exception_support): Raise an error
        if we could find the Ada exception hook in the Ada runtime,
        but no debugging info for that hook.

gdb/testsuite/ChangeLog:

        * gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust
        expected output for unsupported case.
gdb/ChangeLog
gdb/ada-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/catch_ex.exp
gdb/testsuite/gdb.ada/mi_catch_ex.exp