From: Tom Tromey Date: Fri, 16 Feb 2024 17:39:46 +0000 (-0700) Subject: Use the .py file in gdb.dap/pause.exp X-Git-Tag: gdb-15-branchpoint~857 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe51255b892962c25166cc0afd8911caf9e1e56;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/testsuite/gdb.dap/pause.exp b/gdb/testsuite/gdb.dap/pause.exp index 4d13dadd3ad..9038d0f037f 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]]