From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 4AFA23858C54 for ; Tue, 9 Aug 2022 07:55:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4AFA23858C54 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 7B1E0223C9 for ; Tue, 9 Aug 2022 07:55:08 +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 63E3913AA1 for ; Tue, 9 Aug 2022 07:55:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id v74RF9wS8mI4BQAAMHmgww (envelope-from ) for ; Tue, 09 Aug 2022 07:55:08 +0000 Date: Tue, 9 Aug 2022 09:55:07 +0200 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH][gdb/tdep] Declare score-*-* target obsolete Message-ID: <20220809075505.GA4580@delia.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-12.7 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, T_SCC_BODY_TEXT_LINE 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2022 07:55:10 -0000 Hi, I tried out the script gdb/gdb_mbuild.sh, and ran into: ... score-elf ... ... configure --target=score-elf ... make score-elf ... run score-elf score-elf: gdb dumped core Terminated ... Gdb runs into this internal error in initialize_current_architecture: ... if (! gdbarch_update_p (info)) internal_error (__FILE__, __LINE__, _("initialize_current_architecture: Selection of " "initial architecture failed")); ... The call to gdbarch_update_p fails because commit 575b4c298a6 ("gdb: Remove support for S+core") removed support for the architecture. Fix this by adding score-*-* to the list of obsolete targets in gdb/configure.tgt, such that we're no longer able to build the configuration: ... *** Configuration score-unknown-elf is obsolete. *** Support has been REMOVED. make: *** [Makefile:12806: configure-gdb] Error 1 ... Also remove the related line from the "Target Instruction Set Architectures" list in gdb/MAINTAINERS, such that gdb/gdb_mbuild.sh no longer tries to build it. Any comments? Thanks, - Tom [gdb/tdep] Declare score-*-* target obsolete --- gdb/MAINTAINERS | 1 - gdb/configure.tgt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index dcc3e038408..ed2b6f51f81 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -325,7 +325,6 @@ the native maintainer when resolving ABI issues. s390 --target=s390-linux-gnu ,-Werror Andreas Arnez arnez@linux.ibm.com - score --target=score-elf sh --target=sh-elf ,-Werror sparc --target=sparcv9-solaris2.11 ,-Werror diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 0705ccf32b8..e84e222ba0d 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -26,6 +26,7 @@ case $targ in m68*-*-os68k* | \ mips*-*-pe | \ rs6000-*-lynxos* | \ + score-*-* | \ sh*-*-pe | \ hppa*-*-hpux* | \ ia64-*-hpux* | \