* gdb.base/callfuncs.exp (do_function_calls): Set unwindonsignal to on
authorDoug Evans <dje@google.com>
Thu, 20 Sep 2012 14:43:48 +0000 (14:43 +0000)
committerDoug Evans <dje@google.com>
Thu, 20 Sep 2012 14:43:48 +0000 (14:43 +0000)
while running the tests.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/callfuncs.exp

index bda828ffab936e3bf41f6c4b3401da6ada5e0899..d5e1e26c69950c9f143c05b52ff2bf91b403694a 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-20  Doug Evans  <dje@google.com>
+
+       * gdb.base/callfuncs.exp (do_function_calls): Set unwindonsignal to on
+       while running the tests.
+
 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/bp_reset: New testcase.
index daaad1aebe2138529f32d5d57ba65e93f9c834fd..f56761eace5c631c5c1156b4360ff72a2be0da1a 100644 (file)
@@ -65,6 +65,10 @@ proc do_function_calls {} {
     # We need to up this because this can be really slow on some boards.
     set timeout 60;
 
+    # If any of these calls segv we don't want to affect subsequent tests.
+    # E.g., we want to ensure register values are restored.
+    gdb_test_no_output "set unwindonsignal on"
+
     gdb_test "p t_char_values(0,0)" " = 0"
     gdb_test "p t_char_values('a','b')" " = 1"
     gdb_test "p t_char_values(char_val1,char_val2)" " = 1"
@@ -259,6 +263,9 @@ proc do_function_calls {} {
 
     gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?<buf.*> \"foo\"" \
        "call inferior func with struct - returns char *"
+
+    # Restore default value.
+    gdb_test_no_output "set unwindonsignal off"
 }
 
 # Procedure to get current content of all registers.
This page took 0.058832 seconds and 4 git commands to generate.