diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-12-11 17:36:10 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-12-11 17:36:10 +0000 |
commit | a6af7abe5d7e3635aac073dfc2b1fd336d42089d (patch) | |
tree | 919936f25d864590ade8c11068e32e3de73bcc7c /gdb/testsuite/gdb.ada/catch_ex.exp | |
parent | f17011e0cdc423256adc389981b4a51b8a13c1ec (diff) |
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.
Diffstat (limited to 'gdb/testsuite/gdb.ada/catch_ex.exp')
-rw-r--r-- | gdb/testsuite/gdb.ada/catch_ex.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/catch_ex.exp b/gdb/testsuite/gdb.ada/catch_ex.exp index 0ea32568eb..0cb88748e2 100644 --- a/gdb/testsuite/gdb.ada/catch_ex.exp +++ b/gdb/testsuite/gdb.ada/catch_ex.exp @@ -56,7 +56,7 @@ gdb_test_multiple "catch exception" $msg { -re "Catchpoint $any_nb: all Ada exceptions$eol$gdb_prompt $" { pass $msg } - -re "Cannot (insert catchpoints|break on __gnat_raise_nodefer_with_msg) in this configuration\.$eol$gdb_prompt $" { + -re "Your Ada runtime appears to be missing some debugging information.*$eol$gdb_prompt $" { # If the runtime was not built with enough debug information, # or if it was stripped, we can not test exception # catchpoints. |