Message ID | 20230106185729.42372-4-simon.marchi@efficios.com |
---|---|
State | Committed |
Commit | 4cdda229da53bde30b2a22155ee7ceb025cebc49 |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 694503858022 for <patchwork@sourceware.org>; Fri, 6 Jan 2023 18:58:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 694503858022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673031488; bh=xO5aG4TC4gB8zsV6YaPzak0+CV0BZ144Nsiyi/Wn6Q4=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=SXj/chUqJ7gXktRztXsNXCtr/7uL/QbOUegLLwr7svk7X3ippgpPo9fpnuf2WENHy JbwexALpZQDksQJWTJulkgw6+SCdTBxJW+SVlp4Lc7asVyTHFUcNXSYk88AN5c9WXu C/6OwpEIn4llR4c/K2K3BjiZ3JpmZ4EH9MK/tBoQ= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 90DFB3858CDA for <gdb-patches@sourceware.org>; Fri, 6 Jan 2023 18:57:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 90DFB3858CDA X-ASG-Debug-ID: 1673031450-0c856e762a4b70b0001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id 3KQkDgwAxScM7Qwh (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO); Fri, 06 Jan 2023 13:57:30 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@efficios.com X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from epycamd.internal.efficios.com (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtp.ebox.ca (Postfix) with ESMTP id C4FB4441D66; Fri, 6 Jan 2023 13:57:30 -0500 (EST) X-Barracuda-RBL-IP: 192.222.180.24 X-Barracuda-Effective-Source-IP: 192-222-180-24.qc.cable.ebox.net[192.222.180.24] X-Barracuda-Apparent-Source-IP: 192.222.180.24 To: gdb-patches@sourceware.org Cc: Simon Marchi <simon.marchi@efficios.com> Subject: [PATCH 3/9] gdb/testsuite/dap: write requests to gdb.log Date: Fri, 6 Jan 2023 13:57:23 -0500 X-ASG-Orig-Subj: [PATCH 3/9] gdb/testsuite/dap: write requests to gdb.log Message-Id: <20230106185729.42372-4-simon.marchi@efficios.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230106185729.42372-1-simon.marchi@efficios.com> References: <20230106185729.42372-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1673031450 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1082 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.103363 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-3498.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Simon Marchi <simon.marchi@efficios.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Fix gdb.dap/basic-dap.exp for PIE
|
|
Commit Message
Simon Marchi
Jan. 6, 2023, 6:57 p.m. UTC
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. Change-Id: I1ba1acd8b16f4e64686c5ad268cc41082951c874 --- gdb/testsuite/lib/dap-support.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
Simon> This helps following what happens when reading gdb.log. The downside is
Simon> that it becomes harder to tell what text is from GDB and what text is
Simon> going to GDB, but I think that seeing responses without seeing requests
Simon> is even more confusing. At least, the lines are prefix with >>>, so
Simon> when you see this, you know that until the end of the line, it's
Simon> something that was sent to GDB, and not GDB output.
Seems fine to me, and if it is ever annoying, we can always revert it.
Tom
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
Simon> This helps following what happens when reading gdb.log. The downside is
Simon> that it becomes harder to tell what text is from GDB and what text is
Simon> going to GDB, but I think that seeing responses without seeing requests
Simon> is even more confusing. At least, the lines are prefix with >>>, so
Simon> when you see this, you know that until the end of the line, it's
Simon> something that was sent to GDB, and not GDB output.
I meant to mention -- the full DAP I/O is in the test subdir.
E.g. look at gdb/testsuite/outputs/gdb.dap/basic-dap/dap.log.1 in the
build tree.
Tom
On 1/25/23 17:01, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes: > > Simon> This helps following what happens when reading gdb.log. The downside is > Simon> that it becomes harder to tell what text is from GDB and what text is > Simon> going to GDB, but I think that seeing responses without seeing requests > Simon> is even more confusing. At least, the lines are prefix with >>>, so > Simon> when you see this, you know that until the end of the line, it's > Simon> something that was sent to GDB, and not GDB output. > > I meant to mention -- the full DAP I/O is in the test subdir. > E.g. look at gdb/testsuite/outputs/gdb.dap/basic-dap/dap.log.1 in the > build tree. Yeah, I saw that. But to debug the actual test, I found that having the full communication in gdb.log was a bit easier, to correlate with passes and fails. Simon
diff --git a/gdb/testsuite/lib/dap-support.exp b/gdb/testsuite/lib/dap-support.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" }