diff options
author | Tom Tromey <tromey@adacore.com> | 2024-02-16 10:39:46 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-02-27 09:46:31 -0700 |
commit | cfe51255b892962c25166cc0afd8911caf9e1e56 (patch) | |
tree | 7197d7e351c864684b5ef010f3032e0275fc2718 /gdb/testsuite/gdb.dap | |
parent | a207f6b3a384897be1dab081a0a9a206593029de (diff) | |
download | gdb-cfe51255b892962c25166cc0afd8911caf9e1e56.zip gdb-cfe51255b892962c25166cc0afd8911caf9e1e56.tar.gz gdb-cfe51255b892962c25166cc0afd8911caf9e1e56.tar.bz2 |
Use the .py file in gdb.dap/pause.exp
Tom de Vries pointed out that the gdb.dap/pause.exp test writes a
Python file but then does not use it. This patch corrects the
oversight.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31354
Reviewed-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb/testsuite/gdb.dap')
-rw-r--r-- | gdb/testsuite/gdb.dap/pause.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dap/pause.exp b/gdb/testsuite/gdb.dap/pause.exp index 4d13dad..9038d0f 100644 --- a/gdb/testsuite/gdb.dap/pause.exp +++ b/gdb/testsuite/gdb.dap/pause.exp @@ -134,7 +134,7 @@ dap_read_response cancel $cancel_id # does not continue the inferior) can be canceled. # -write_file py "while True:\n pass" +set gdbfile [write_file py "while True:\n pass"] set cont_id [dap_send_request evaluate \ [format {o expression [s "source %s"] context [s repl]} \ $gdbfile]] |