* gdb.ada/catch_ex.exp: Call unsupported and stop if the runtime
authorDaniel Jacobowitz <drow@false.org>
Wed, 10 Jan 2007 03:46:03 +0000 (03:46 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 10 Jan 2007 03:46:03 +0000 (03:46 +0000)
has no debug information.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/catch_ex.exp

index 3a9f69626a5543ac9e548e0b4e656ecd5190854c..5053e7ecae864a8f128c28d25fe093d93822c64a 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.ada/catch_ex.exp: Call unsupported and stop if the runtime
+       has no debug information.
+
 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.base/annota1.exp: Remove extra send_gdb.
index 603909ce0e1c1778d7d139c55b97bb0c418f7c28..2ef15a71437b76361870ed2be657ed5404699070 100644 (file)
@@ -56,9 +56,19 @@ if ![runto_main] then {
    return 0
 }
 
-gdb_test "catch exception" \
-         "Catchpoint $any_nb: all Ada exceptions" \
-         "insert catchpoint on all Ada exceptions"
+set msg "insert catchpoint on all Ada exceptions"
+gdb_test_multiple "catch exception" $msg {
+    -re "Catchpoint $any_nb: all Ada exceptions$eol$gdb_prompt $" {
+       pass $msg
+    }
+    -re "Cannot break on __gnat_raise_nodefer_with_msg in this configuration\.$eol$gdb_prompt $" {
+       # If the runtime was not built with enough debug information,
+       # or if it was stripped, we can not test exception
+       # catchpoints.
+       unsupported $msg
+       return -1
+    }
+}
 
 gdb_test "info break" \
          "$info_break_header$eol.*$catch_exception_info" \