From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kwbgBPcS8mIMjyMAWB0awg (envelope-from ) for ; Tue, 09 Aug 2022 03:55:35 -0400 Received: by simark.ca (Postfix, from userid 112) id 018811E227; Tue, 9 Aug 2022 03:55:35 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=DnV3dfxd; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A07AD1E21F for ; Tue, 9 Aug 2022 03:55:32 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 09A603857BA7 for ; Tue, 9 Aug 2022 07:55:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09A603857BA7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1660031729; bh=MpTXmmTPSZRMOrwHQ9KYq8kevG5WEZjsO2RVbhb0ZfE=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DnV3dfxdZyPew3frUi1fXOqLzTAX4hQBtzkCeZEHEzcLhCNbfzuH0dqO6IN8j75g0 uSKOCoZq1FZC1Vj2ACI42c6vRc1Q032WV3fTFYfT1bxACrihNuzagaRlrB5WwKZ/ja BQ8/xc21wam3jRs/5Q42RULauWRHFMKRinP7ZAao= 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 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-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: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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* | \