From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 01D2F3858402; Tue, 27 Feb 2024 16:56:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01D2F3858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709053005; bh=5hu90eh4ghNn6jhY4B5KU5zOJTfqMUIqtwvRF1FdCTM=; h=From:To:Subject:Date:From; b=gNJylog3hslNjZ/W/injcXFETHGpYVL1wy4mKPgGn26mvz9dTdUn9vpQLS7rkfv91 g/gI0h6ok7/WMEDdX/tCZFFJ6NMwIPExNR9cK08ZtCcBtx/Ef1cnvchWxy7bxGiwxl kV3zVLSkqU7O0wDtUYPVbAGP5+xmRoUOrN1qKPNM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Use the .py file in gdb.dap/pause.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: a207f6b3a384897be1dab081a0a9a206593029de X-Git-Newrev: cfe51255b892962c25166cc0afd8911caf9e1e56 Message-Id: <20240227165645.01D2F3858402@sourceware.org> Date: Tue, 27 Feb 2024 16:56:44 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dcfe51255b892= 962c25166cc0afd8911caf9e1e56 commit cfe51255b892962c25166cc0afd8911caf9e1e56 Author: Tom Tromey Date: Fri Feb 16 10:39:46 2024 -0700 Use the .py file in gdb.dap/pause.exp =20 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. =20 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31354 Reviewed-By: Tom de Vries 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. # =20 -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]]