aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-09-20 14:43:48 +0000
committerDoug Evans <dje@google.com>2012-09-20 14:43:48 +0000
commit1aa995377098e881ea046d8bd1b874e7435476f8 (patch)
treed1b6c134b16d28f880932837b51c80a1c8e89102 /gdb
parent6788fa52419e74686cadbce7a92e4c10c5f76441 (diff)
downloadgdb-1aa995377098e881ea046d8bd1b874e7435476f8.zip
gdb-1aa995377098e881ea046d8bd1b874e7435476f8.tar.gz
gdb-1aa995377098e881ea046d8bd1b874e7435476f8.tar.bz2
* gdb.base/callfuncs.exp (do_function_calls): Set unwindonsignal to on
while running the tests.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/callfuncs.exp7
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index bda828f..d5e1e26 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp
index daaad1a..f56761e 100644
--- a/gdb/testsuite/gdb.base/callfuncs.exp
+++ b/gdb/testsuite/gdb.base/callfuncs.exp
@@ -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.