diff options
Diffstat (limited to 'gdb/testsuite/gdb.server/exit-multiple-threads.exp')
-rw-r--r-- | gdb/testsuite/gdb.server/exit-multiple-threads.exp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.server/exit-multiple-threads.exp b/gdb/testsuite/gdb.server/exit-multiple-threads.exp index c0db6e9..a74f7d1 100644 --- a/gdb/testsuite/gdb.server/exit-multiple-threads.exp +++ b/gdb/testsuite/gdb.server/exit-multiple-threads.exp @@ -39,7 +39,17 @@ standard_testfile # Places a breakpoint in function 'breakpt' and then continues to the # breakpoint, at which point it runs 'info threads'. proc prepare_for_test { executable disable_multi_process } { - clean_restart ${executable} + global GDBFLAGS + + save_vars { GDBFLAGS } { + # If GDB and GDBserver are both running locally, set the sysroot to avoid + # reading files via the remote protocol. + if { ![is_remote host] && ![is_remote target] } { + set GDBFLAGS "$GDBFLAGS -ex \"set sysroot\"" + } + + clean_restart ${executable} + } # Make sure we're disconnected, in case we're testing with an # extended-remote board, therefore already connected. |