From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id feWANWI8WWoGOw0AWB0awg (envelope-from ) for ; Thu, 16 Jul 2026 16:17:38 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=ARu+JooB; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BD72D1E033; Thu, 16 Jul 2026 16:17:38 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 183AB1E033 for ; Thu, 16 Jul 2026 16:17:38 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CAAA64BA23D3 for ; Thu, 16 Jul 2026 20:17:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAAA64BA23D3 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=ARu+JooB Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 6B4FF4BA2E04 for ; Thu, 16 Jul 2026 20:17:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6B4FF4BA2E04 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6B4FF4BA2E04 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::333 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784233033; cv=none; b=Y8ep8BhjxQeenhv9Set43/vKlyeCyqXCtwGcYWdgTDrucFqIpECD7vMlmxvXHZULEG/pILAwxUSX8CbS/Cc8uag8HPS6/GX7Q7d8BCaMW60I1WjrTDCOYeH0NrOjq15YgNe0T4WhzQjVMHSfbm49na4P214IDLtcHVkBzZ0HfLg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784233033; c=relaxed/simple; bh=LBwGGTPAMcLhyhK0de4HREAKOQUPeCw//RCwzVw9RIU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DqUg8PZObyguzGa4NO4aWRx2u7/I1tbLRRmPb10p0xR3WGkFDfRsboHdaYr3BDc46R/Hw/EddRGA3DtL9OW1241pLAPPq3XIInGV4/r7AuS6hdZygf9EgFSNmbfzX0K1qOu5BjRJ6Mp9NIfiGtg3EqcarkEfxmLu/IHSz8nS56M= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=ARu+JooB DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B4FF4BA2E04 Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-7ec1e9d3359so2926438a34.0 for ; Thu, 16 Jul 2026 13:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1784233033; x=1784837833; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=FxmMkoc1aWpv2lA9zbA6m8b6TZIrOxgKWx5ErOI1WP8=; b=ARu+JooBqgVMWveeuLxeKEWMRd4qVGPIac08cORcmFsnpIC36MqRjofMYK6NPqdQtR B6yFVl7yEzcz/uamh0acR+8NrDCLhxm+nUiHqQ0cXIly/MCk5Vi4YYMfKMVpQKBmCJ03 AbPHxb6b+Hy+RYvEbUIRHM1ojRpbIMeaqWyVMYC9mIRVWSF1tTkgAhz3Gl7n8jkscnrY HpWCyaLEA12/aH+RdbC5uNNZxCZ9d/78d+WgaoP562Q/7o4KM7ArDshyKZ9CFe+HQPnk WeuCnA49umgNLx4Ed1bO4/G83mhuHjqppvtWQWN9YTHWkB47e6dUam8KiPSfPyKsc37T uelQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784233033; x=1784837833; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FxmMkoc1aWpv2lA9zbA6m8b6TZIrOxgKWx5ErOI1WP8=; b=lt9hTFDefSRgWFyQxt+mEVuSS3BOqmm3YsKGvp1mmpo6jCDWRkLeQn7hQFsf5jP6qU Mo5gAG9X/NKLquKlJ4nQ0tSEDBoxW8OkbklEg+lywJX4w0wV+mj+RbjzOTJvEaKBv8sK k7En+5GQe7ogNvHyq4bN7dnh/CxHek0mopVszmXd/GoLp7JfGnI8FZO2ln/WbewxpuD+ YupJO5uFc883Pw1rwVzW77kqFnS0FqrAlOy48E4a5Hen84vvEBSqf0nI+1Q7078qbm9R qNLLk0c3YGlnmCEq+/Nx9ZEZPyGUW/ftNRMId7XSphUNjYkLPbMrilThRf0PNrTnv6jX srLQ== X-Gm-Message-State: AOJu0YybWc4dGCC13JPTi5KVQynxGTX8wbcNhQQBP+FI7u9u1i5W6m7U 9e0HKsEPcW7eOmefbIsgXa759coEYUq2Q+I6KW9hy5THsYA7jihaWwWuVjJ5KWoHyZ7gUXFDlfE RzwI= X-Gm-Gg: AfdE7cnp7DwfUek32Gm0SD0mxcmmcmbmKPm2eN1PEmWLQ1EOCbvqFE9jCEkmFNsiGww WeT+T2e7hICYps1JMQ5GdlbiaMW8DJNjFwJmnGTVQ3pSfm14796fRmufutdiv6gOcRj76vcQw2y 9QjlOFTWAxuy8vbQBgdH2JyRbYsQdNb5nQ1zhiCbtsB781tM0O52ljlT1lWo6t+rjsIwPZegdu3 Y1+8X9whgZemWehe80uJKjotoY/h9CnHEDmmaTcYjNOK2FgFYQvvelpFcjOhbEqAzIWDdSJSLpD mzozIsr/w4AJSRCKFEZgIJYhiK3EGOB7Ocm/xq8Gpw4tYV2esP0+5pPwDagvmsXh0Tk4C5wZWGf pys99MK1WueTt/Uibkzfma6XjFH/BSCt4yaQ47v4VHySknKcqV8GlSCXFpm9okr77KWRwx5Y+tt MmnltMONfjEWH4MFrJtDcItw== X-Received: by 2002:a05:6830:82f4:b0:7eb:c933:efef with SMTP id 46e09a7af769-7ec42149c7emr8849752a34.14.1784233032748; Thu, 16 Jul 2026 13:17:12 -0700 (PDT) Received: from bapiya (75-166-225-82.hlrn.qwest.net. [75.166.225.82]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ebcb262da7sm19768977a34.17.2026.07.16.13.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 13:17:12 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Remove some "stabsread" references Date: Thu, 16 Jul 2026 14:17:10 -0600 Message-ID: <20260716201710.986896-1-tromey@adacore.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 I noticed a stray reference to "stabsread". This patch removes these. I also removed a bit of Ada code that, I believe, was only relevant to the stabs reader. --- gdb/ada-lang.c | 5 ----- gdb/gdbtypes.h | 4 ++-- gdb/symtab.h | 4 +--- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 85b08af8c06..b6de3b9e0fb 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -3328,11 +3328,6 @@ ada_index_type (struct type *type, int n, const char *name) type = type->target_type (); } result_type = ada_check_typedef (type)->index_type ()->target_type (); - /* FIXME: The stabs type r(0,0);bound;bound in an array type - has a target type of TYPE_CODE_UNDEF. We compensate here, but - perhaps stabsread.c would make more sense. */ - if (result_type && result_type->code () == TYPE_CODE_UNDEF) - result_type = NULL; } else { diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 572bf6d3d6f..f2132e63e8c 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1611,8 +1611,8 @@ struct fn_fieldlist { /* The overloaded name. - This is generally allocated in the objfile's obstack. - However stabsread.c sometimes uses malloc. */ + This is generally allocated in the objfile's obstack, but it + could also be statically allocated. */ const char *name; diff --git a/gdb/symtab.h b/gdb/symtab.h index 7b96b8c989c..6443216fd7f 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -803,9 +803,7 @@ struct minimal_symbol : public general_symbol_info m_target_flag_2 = target_flag_2; } - /* Size of this symbol. stabs_end_psymtab in stabsread.c uses this - information to calculate the end of the partial symtab based on the - address of the last symbol plus the size of the last symbol. */ + /* Size of this symbol. */ unsigned long m_size; base-commit: a9b7bbb1729d5ac6d3623bfe56a54d8b9936f160 -- 2.55.0