Message ID | 20221115125426.27370-1-tdevries@suse.de |
---|---|
State | Committed |
Commit | 08d237dd4ebdcc0a13cac1dc57cd73de067d2f98 |
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 16D083895FC4 for <patchwork@sourceware.org>; Tue, 15 Nov 2022 12:54:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16D083895FC4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668516892; bh=usj+MwQGltHx7UCjWlCu9nqWjYyBF6SkoJFcKlAEB+A=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=R9beyMhPuyiQqFbhqFB780XVbd72byZcayHYiTqV5LlS0qDk5R4uRJpCW/yWii823 /mfwrri/dB+FChCZdLd2z6HIj8vTTV4pCu3Zi9ezmZ+Ktv46QI0DS6dpU11EAMOrtd q2/HYyBlmN2CZWVXZoRDvv8YL90mw/k3Gic4xE9E= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 4E6AD3894C17 for <gdb-patches@sourceware.org>; Tue, 15 Nov 2022 12:54:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4E6AD3894C17 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 83BC7223C0; Tue, 15 Nov 2022 12:54:27 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6851313A91; Tue, 15 Nov 2022 12:54:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id W2YzGAOMc2NnUgAAMHmgww (envelope-from <tdevries@suse.de>); Tue, 15 Nov 2022 12:54:27 +0000 To: gdb-patches@sourceware.org Cc: Luis Machado <luis.machado@arm.com> Subject: [PATCH] [gdb/testsuite] Skip aarch64 in skip_gdbserver_test if no xml support Date: Tue, 15 Nov 2022 13:54:26 +0100 Message-Id: <20221115125426.27370-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, 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: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Tom de Vries <tdevries@suse.de> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
[gdb/testsuite] Skip aarch64 in skip_gdbserver_test if no xml support
|
|
Commit Message
Tom de Vries
Nov. 15, 2022, 12:54 p.m. UTC
From: Tom de Vries <tdevries@ampere3.arch.suse.de>
On aarch64-linux, with a gdb build without libexpat, so without xml support, I
run into:
...
(gdb) builtin_spawn attach-no-multi-process^M
attach 26808^M
Attaching to Remote target^M
warning: Can not parse XML target description; XML support was disabled at \
compile time^M
Reading symbols from attach-no-multi-process...^M
Remote 'g' packet reply is too long (expected 788 bytes, got 796 bytes): ... ^M
...
The test-case checks for skip_gdbserver_tests and that one contains a check
for xml support:
...
# If GDB is lack of XML support, and targets, like arm, have
# multiple target descriptions, GDB doesn't know which target
# description GDBserver uses, and may fail to parse 'g' packet
# after connection.
if { [gdb_skip_xml_test]
&& ([istarget "arm*-*-linux*"]
|| [istarget "mips*-*-linux*"]
|| [istarget "powerpc*-*-linux*"]
|| [istarget "s390*-*-linux*"]
|| [istarget "x86_64-*-linux*"]
|| [istarget "i\[34567\]86-*-linux*"]) } {
return 1
}
...
but it doesn't trigger because aarch64 is missing.
Fix this by adding istarget "aarch64*-*-linux*".
Tested on aarch64-linux.
---
gdb/testsuite/lib/gdbserver-support.exp | 1 +
1 file changed, 1 insertion(+)
Comments
Hi Tom, On 11/15/22 12:54, Tom de Vries wrote: > From: Tom de Vries <tdevries@ampere3.arch.suse.de> > > On aarch64-linux, with a gdb build without libexpat, so without xml support, I > run into: > ... > (gdb) builtin_spawn attach-no-multi-process^M > attach 26808^M > Attaching to Remote target^M > warning: Can not parse XML target description; XML support was disabled at \ > compile time^M > Reading symbols from attach-no-multi-process...^M > Remote 'g' packet reply is too long (expected 788 bytes, got 796 bytes): ... ^M > ... > > The test-case checks for skip_gdbserver_tests and that one contains a check > for xml support: > ... > # If GDB is lack of XML support, and targets, like arm, have > # multiple target descriptions, GDB doesn't know which target > # description GDBserver uses, and may fail to parse 'g' packet > # after connection. > if { [gdb_skip_xml_test] > && ([istarget "arm*-*-linux*"] > || [istarget "mips*-*-linux*"] > || [istarget "powerpc*-*-linux*"] > || [istarget "s390*-*-linux*"] > || [istarget "x86_64-*-linux*"] > || [istarget "i\[34567\]86-*-linux*"]) } { > return 1 > } > ... > but it doesn't trigger because aarch64 is missing. > > Fix this by adding istarget "aarch64*-*-linux*". > > Tested on aarch64-linux. > --- > gdb/testsuite/lib/gdbserver-support.exp | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp > index 3f2cec246fa..c9f0c35c07e 100644 > --- a/gdb/testsuite/lib/gdbserver-support.exp > +++ b/gdb/testsuite/lib/gdbserver-support.exp > @@ -173,6 +173,7 @@ proc skip_gdbserver_tests { } { > # after connection. > if { [gdb_skip_xml_test] > && ([istarget "arm*-*-linux*"] > + || [istarget "aarch64*-*-linux*"] > || [istarget "mips*-*-linux*"] > || [istarget "powerpc*-*-linux*"] > || [istarget "s390*-*-linux*"] Thanks for spotting this. LGTM.
diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index 3f2cec246fa..c9f0c35c07e 100644 --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp @@ -173,6 +173,7 @@ proc skip_gdbserver_tests { } { # after connection. if { [gdb_skip_xml_test] && ([istarget "arm*-*-linux*"] + || [istarget "aarch64*-*-linux*"] || [istarget "mips*-*-linux*"] || [istarget "powerpc*-*-linux*"] || [istarget "s390*-*-linux*"]