From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 9TWAKgnVl2fPbhwAWB0awg (envelope-from ) for ; Mon, 27 Jan 2025 13:48:41 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=c20PesXk; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9F58A1E105; Mon, 27 Jan 2025 13:48:41 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 093BC1E08E for ; Mon, 27 Jan 2025 13:48:41 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 981103858430 for ; Mon, 27 Jan 2025 18:48:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 981103858430 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=c20PesXk Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 409A03858D37 for ; Mon, 27 Jan 2025 18:48:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 409A03858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 409A03858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738003687; cv=none; b=ZExMfYfyYE68cjxs8YfRfBBmR+Eq7vFwf+6YqeaZhAlHsMh+4H8g6Zr3ugDQSNsUrS4OmGZdnOhQj5HEOCLIIIDD01XlIpc5HhhwsprwuthLdym+q51saB0xbCRnDaCUXq+YduN7zsjVJalgVMRbU7voY31E9hElZAYj/lUeVH4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738003687; c=relaxed/simple; bh=OXRlWzSkw7SX8xr6jtBrO6+lam8whA5vdq1FBwfzPJc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VaKbmxL4D3FwbLTHBGkIpGda/ML9ABv0rEHuWnNs7+dDWU/ZzwOVD+zUhB4cOzalQu9Otf9bCPm3nNg4rsSFIYjxONwg27QIhkC4xEqJyshEKmf+PIp337+TjCxjLpDMTbrxfg4VyHC7fhRSR4kIuXvgE7Yrg6dtLH8JhqgMlH0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 409A03858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738003687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iWshZuSNHeOyp+eDaMtJaY75J5LpIC+loZxzVg5tj/w=; b=c20PesXkN3zza1/cihXIq1K72mGYrIE8RIHpcMbYJwxIYpPP6i8Q8/Woys7YPip1J08/FD dwkYQzsmt1SKCygaDRLkSezvI2qBpeqPUsAjauhk1oX3RQMRbCuR97rfX11czkIEwaP+9U v/73KLNGrgVyPu3D8p14GpMcGvotXSI= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-381-fRqhg7tFPQ6VdvQPjZOdIw-1; Mon, 27 Jan 2025 13:48:05 -0500 X-MC-Unique: fRqhg7tFPQ6VdvQPjZOdIw-1 X-Mimecast-MFC-AGG-ID: fRqhg7tFPQ6VdvQPjZOdIw Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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 mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A071018009E5 for ; Mon, 27 Jan 2025 18:48:04 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.84]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 425E0180034C; Mon, 27 Jan 2025 18:48:02 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH v2] gdb: Deprecate stabs debug info Date: Mon, 27 Jan 2025 15:47:50 -0300 Message-ID: <20250127184750.315584-1-guinevere@redhat.com> In-Reply-To: <20250113181359.1286957-1-guinevere@redhat.com> References: <20250113181359.1286957-1-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: AuHXLjtICZt62gJDSFpOJ9Uvn79k7Kqj8-W8uc4t0Bc_1738003684 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org GCC has deprecated stabs generation in GCC 12 and entirely removed it in GCC 13, which was released in April 2023. At the time it was proposed that GDB deprecate stabs as well, but the decision was to support it a bit longer. With this patch, it'll be deprecated on GDB 17, and removed on GDB 18, which following the current cadence, will be released early 2026, meaning we will have supported stabs for nearly 3 years longer than GCC, which I think is reasonable. As pointed out in the previous discussion on this topic[1], there are several existing issues on the code, and none of the current maintainers knows how to fix it. Unless someone steps up to fix this before the removal on GDB 18, I don't see why we should keep this old code that breaks all conventions of modern debuginfo readers and doesn't even work, instead of being able to further advance adjacent code. Finally, deprecating and removing stabs will make a.out/dbx inferiors be essentially unsupported, as the only debuginfo GDB supports for those formats is stabs, meaning users would only have assembly-level debugging for that format. With that in mind, this commit deprecates the a.out/dbx format as well. [1] https://inbox.sourceware.org/gdb-patches/20230119174156.654402-1-tom@tromey.com/ Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31210 --- gdb/NEWS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/NEWS b/gdb/NEWS index eec7cf4695d..92006c85e97 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -46,6 +46,9 @@ maintenance check symtabs ** New constant PARAM_COLOR represents color type of a value of a object. Parameter's value is instance. +* Support for stabs debugging format and the a.out/dbx object format is + deprecated, and will be removed in GDB 18. + *** Changes in GDB 16 * Support for Nios II targets has been removed as this architecture -- 2.48.1