aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/bt-on-fatal-signal.exp')
-rw-r--r--gdb/testsuite/gdb.base/bt-on-fatal-signal.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
index 8f9d857..1af88d5 100644
--- a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
+++ b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
@@ -62,7 +62,10 @@ foreach test_data {{SEGV "Segmentation fault"} \
with_test_prefix ${sig} {
# Restart GDB.
- clean_restart $binfile
+ save_vars { GDB } {
+ set GDB [gdb_no_core]
+ clean_restart $binfile
+ }
# Capture the pid of GDB.
set testpid [spawn_id_get_pid $gdb_spawn_id]