From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 6532A3858C56; Mon, 11 Dec 2023 18:54:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6532A3858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702320864; bh=PxrExZXQ1Cw/J+/rbfYzNMd6IYnfJ0lRcv4KN+cGeAc=; h=From:To:Subject:Date:From; b=GqCp1RsxDyZU++HA9oNVuw8XeRzf5K0rW4M8325J6Heae20ikmBsOM5v/9BP91LCS BJhyJ+4tCa8WHLD/fCaiQBC3xNezy2FeavK/uriHARNMNe1qozq+BQ0w3CYW5OxCpT ec41d/fSY2mpUfRpcwjlx5PhU+Yj7OWajx59wLRE= 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] Rename a couple of DAP procs in the testsuite X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 3a12e74ecedfc416aafeda26dbe335ad7962a283 X-Git-Newrev: 606fc72a5f05a61184bc476dd877200336c1e3d0 Message-Id: <20231211185424.6532A3858C56@sourceware.org> Date: Mon, 11 Dec 2023 18:54:24 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D606fc72a5f05= a61184bc476dd877200336c1e3d0 commit 606fc72a5f05a61184bc476dd877200336c1e3d0 Author: Tom Tromey Date: Thu Nov 30 13:28:48 2023 -0700 Rename a couple of DAP procs in the testsuite =20 This renames a couple of DAP procs in the testsuite, to clarify that they are now exported. The cancellation test will need these. =20 Reviewed-By: K=C3=A9vin Le Gouguec Diff: --- gdb/testsuite/lib/dap-support.exp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/lib/dap-support.exp b/gdb/testsuite/lib/dap-supp= ort.exp index 82d83d95b9f..b9ac314fee5 100644 --- a/gdb/testsuite/lib/dap-support.exp +++ b/gdb/testsuite/lib/dap-support.exp @@ -111,7 +111,7 @@ proc _dap_send_ton {obj} { # omitted. The sequence number of the request is automatically added, # and this is also the return value. OBJ is assumed to already be in # TON form. -proc _dap_send_request {command {obj {}}} { +proc dap_send_request {command {obj {}}} { # We can construct this directly as a TON object. set result $::dap_seq incr ::dap_seq @@ -186,7 +186,7 @@ proc _dap_read_json {} { # response is seen, this leaves the global "last_ton" set to the TON # for the response. =20 -proc _dap_read_response {cmd num} { +proc dap_read_response {cmd num} { set result {} while 1 { set d [_dap_read_json] @@ -204,11 +204,11 @@ proc _dap_read_response {cmd num} { } } =20 -# A wrapper for _dap_send_request and _dap_read_response. This sends a +# A wrapper for dap_send_request and dap_read_response. This sends a # request to gdb and returns the response as a dict. proc dap_request_and_response {command {obj {}}} { - set seq [_dap_send_request $command $obj] - return [_dap_read_response $command $seq] + set seq [dap_send_request $command $obj] + return [dap_read_response $command $seq] } =20 # Like dap_request_and_response, but also checks that the response