aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.gdb/python-helper.exp6
-rw-r--r--gdb/testsuite/gdb.gdb/selftest.exp6
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.gdb/python-helper.exp b/gdb/testsuite/gdb.gdb/python-helper.exp
index 3585ac9..fc52929 100644
--- a/gdb/testsuite/gdb.gdb/python-helper.exp
+++ b/gdb/testsuite/gdb.gdb/python-helper.exp
@@ -93,6 +93,12 @@ proc test_python_helper {} {
# here.
gdb_test_multiple "continue" "start inner gdb" {
-i "$inferior_spawn_id"
+ -re "received signal SIGSEGV.* in GC_.*$outer_prompt_re" {
+ # Some versions of the GC used by Guile cause a SEGV
+ # during stack probing. Ignore this and carry on.
+ send_gdb "continue\n"
+ exp_continue
+ }
-re "\r\n$gdb_prompt $" {
pass $gdb_test_name
}
diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp
index ca1e7cf..e2b9247 100644
--- a/gdb/testsuite/gdb.gdb/selftest.exp
+++ b/gdb/testsuite/gdb.gdb/selftest.exp
@@ -75,6 +75,12 @@ proc test_with_self { } {
set test "xgdb is at prompt"
gdb_test_multiple "continue" $test {
-i "$inferior_spawn_id"
+ -re "received signal SIGSEGV.* in GC_.*$gdb_prompt" {
+ # Some versions of the GC used by Guile cause a SEGV
+ # during stack probing. Ignore this and carry on.
+ send_gdb "continue\n"
+ exp_continue
+ }
-re "$banner" {
pass $test
}