diff options
author | Tom de Vries <tdevries@suse.de> | 2025-09-02 18:41:10 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-09-02 18:41:10 +0200 |
commit | 0a2ec1daf9339d105e83d73ecabe65e73bb6f84a (patch) | |
tree | 4f26a9e686014bc77d734b4bca1ad27bf12531eb | |
parent | 0406bf4b23c4b288e5912a8e01f51cb299d52a59 (diff) | |
download | binutils-0a2ec1daf9339d105e83d73ecabe65e73bb6f84a.zip binutils-0a2ec1daf9339d105e83d73ecabe65e73bb6f84a.tar.gz binutils-0a2ec1daf9339d105e83d73ecabe65e73bb6f84a.tar.bz2 |
[gdb/testsuite] Fix clean_restart <absolute filename> in gdb.replay
Fix clean_restart <absolute filename> in the test-case in gdb.replay.
Tested on x86_64-linux, with target boards unix, native-gdbserver and
native-extended-gdbserver.
-rw-r--r-- | gdb/testsuite/gdb.replay/connect.exp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.replay/connect.exp b/gdb/testsuite/gdb.replay/connect.exp index 26b7aa3..b25c372 100644 --- a/gdb/testsuite/gdb.replay/connect.exp +++ b/gdb/testsuite/gdb.replay/connect.exp @@ -70,9 +70,8 @@ proc_with_prefix record_initial_logfile {} { # Connect to gdbreply using the global REMOTELOG. Runs to a breakpoint # in main. proc_with_prefix replay_without_error {} { - global binfile global remotelog - clean_restart $binfile + clean_restart $::testfile # Make sure we're disconnected, in case we're testing with an # extended-remote board, therefore already connected. gdb_test "disconnect" ".*" @@ -97,7 +96,6 @@ proc_with_prefix replay_without_error {} { # copy of REMOTELOG. Attempt to connect to the remote and expect to see # the error reported by GDB. proc_with_prefix replay_with_mustreplyempty_error {} { - global binfile global remotelog global testfile set newline E.errtext @@ -107,7 +105,7 @@ proc_with_prefix replay_with_mustreplyempty_error {} { # the vMustReplayEmty packet to an error. update_log $remotelog $output_file "vMustReplyEmpty" $newline - clean_restart $binfile + clean_restart $::testfile # Make sure we're disconnected, in case we're testing with an # extended-remote board, therefore already connected. gdb_test "disconnect" ".*" |