From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id 03449385843D; Thu, 26 Jan 2023 20:22:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03449385843D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674764568; bh=JRigZD9FjMVf/o5T5Oto5I7cnzOP0H/IRcjtD+qVv2Q=; h=From:To:Subject:Date:From; b=TcyvY1OUUmJ9dyynmcHS0Hmm8IXzOYWeGoKQ/lV6CtB7hTPsvffv+d1o1/ibm4auW VEB5ajqgbyKE0xnKvhbI052WNGd72pjcMQvXqrnOYVA+WEOF/5R9urWKhOFNpZKtdH UBlDsrj+2RrP2cr0TxHDw3wwx6gr1v30NNjSBHJk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite/dap: write requests to gdb.log X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 48680a5f9d8ec2fcfa349ff2006a21b3b788b959 X-Git-Newrev: 4cdda229da53bde30b2a22155ee7ceb025cebc49 Message-Id: <20230126202248.03449385843D@sourceware.org> Date: Thu, 26 Jan 2023 20:22:47 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4cdda229da53= bde30b2a22155ee7ceb025cebc49 commit 4cdda229da53bde30b2a22155ee7ceb025cebc49 Author: Simon Marchi Date: Fri Jan 6 10:37:10 2023 -0500 gdb/testsuite/dap: write requests to gdb.log =20 This helps following what happens when reading gdb.log. The downside is that it becomes harder to tell what text is from GDB and what text is going to GDB, but I think that seeing responses without seeing requests is even more confusing. At least, the lines are prefix with >>>, so when you see this, you know that until the end of the line, it's something that was sent to GDB, and not GDB output. =20 Change-Id: I1ba1acd8b16f4e64686c5ad268cc41082951c874 Diff: --- gdb/testsuite/lib/dap-support.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/lib/dap-support.exp b/gdb/testsuite/lib/dap-supp= ort.exp index a91b5533643..94a0d27c8a8 100644 --- a/gdb/testsuite/lib/dap-support.exp +++ b/gdb/testsuite/lib/dap-support.exp @@ -102,7 +102,7 @@ proc _dap_send_ton {obj} { set json [namespace eval ton::2json $obj] # FIXME this is wrong for non-ASCII characters. set len [string length $json] - verbose ">>> $json" + verbose -log ">>> $json" send_gdb "Content-Length: $len\r\n\r\n$json" }