public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use the .py file in gdb.dap/pause.exp
@ 2024-02-27 16:56 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2024-02-27 16:56 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cfe51255b892962c25166cc0afd8911caf9e1e56

commit cfe51255b892962c25166cc0afd8911caf9e1e56
Author: Tom Tromey <tromey@adacore.com>
Date:   Fri Feb 16 10:39:46 2024 -0700

    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>

Diff:
---
 gdb/testsuite/gdb.dap/pause.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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]]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-27 16:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 16:56 [binutils-gdb] Use the .py file in gdb.dap/pause.exp Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).