From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KIzhMcxdl2lDvwEAWB0awg (envelope-from ) for ; Thu, 19 Feb 2026 14:00:28 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=labware.com header.i=@labware.com header.a=rsa-sha256 header.s=mimecast20220511 header.b=V5ob++Ec; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BFF4E1E0BA; Thu, 19 Feb 2026 14:00:28 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no 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 C2BCF1E08D for ; Thu, 19 Feb 2026 14:00:27 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 582CB4BAD143 for ; Thu, 19 Feb 2026 19:00:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 582CB4BAD143 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=labware.com header.i=@labware.com header.a=rsa-sha256 header.s=mimecast20220511 header.b=V5ob++Ec Received: from us-smtp-delivery-114.mimecast.com (us-smtp-delivery-114.mimecast.com [170.10.133.114]) by sourceware.org (Postfix) with ESMTP id AD27F4B9DB6D for ; Thu, 19 Feb 2026 18:57:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AD27F4B9DB6D Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=labware.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=labware.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AD27F4B9DB6D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.114 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771527478; cv=none; b=U/hQZaawLI4/rT2thbh8tILyF9QAQhmR6cB6DJVFqjAJJJN0cnVM3tbYqbs7BtlO3TjxMW2Ztx/aCVRDACJ7FxzOB5Fz9rT+Thy7LjUXBgjrPQoVfWBqGee4sabCHiU7w/o8jULApWsrqYFUkFPDs44OFwE9NjpWijnjGap8t24= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771527478; c=relaxed/simple; bh=avoN9F8VUNcrODhpVo/FbvjnDh0CB4hejw38OjSF3oE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=oPSSQzDgpWZMWf76ytqaqKc7UqtP9xerR/Qyrr0SuPdQIMzFGeNfH/xdxPavE3jsl9bQhAcgcSAaQ0CY0RTJfb0xGOFDt69Zx3OfhRfIzr540YVbCC6EQG+RJitPbWaKtZ4LUE3Z1h67BZz/Kry0Smm81PKON4VQA1NSqgnusPM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD27F4B9DB6D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=labware.com; s=mimecast20220511; t=1771527478; 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=gijfCGU4gmNtzjxatYjdWC9MYkDJpQO32pEkHhT2Iyo=; b=V5ob++Ecz1M6Y1BJKhDRPNN66iDOCI0f/2PWnATfBDu5PvLCPMpPzw/KCU8mfDbOUCPZr4 YiUraEg6LrbcyOhcGXdO+xBlGgtCbR8D6XK3wtNY3iTkACw359JPUbYgPm8ixobQWZumhm 5iQiHFyqKyf4N1sR13SYe6S8oCNIx9U= Received: from SJ2PR03CU001.outbound.protection.outlook.com (mail-westusazon11022080.outbound.protection.outlook.com [52.101.43.80]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-654-cIj0-o1AMzyM0AQTo8K1TQ-2; Thu, 19 Feb 2026 13:57:57 -0500 X-MC-Unique: cIj0-o1AMzyM0AQTo8K1TQ-2 X-Mimecast-MFC-AGG-ID: cIj0-o1AMzyM0AQTo8K1TQ_1771527477 Received: from SA1PR17MB5365.namprd17.prod.outlook.com (2603:10b6:806:1d8::11) by CH3PR17MB7196.namprd17.prod.outlook.com (2603:10b6:610:198::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9632.16; Thu, 19 Feb 2026 18:57:55 +0000 Received: from SA1PR17MB5365.namprd17.prod.outlook.com ([fe80::9a:538a:fa42:730e]) by SA1PR17MB5365.namprd17.prod.outlook.com ([fe80::9a:538a:fa42:730e%7]) with mapi id 15.20.9632.010; Thu, 19 Feb 2026 18:57:55 +0000 From: Jan Vrany To: gdb-patches@sourceware.org CC: Jan Vrany Subject: [PATCH 3/7] gdb: simplify find_compunit_symtab_for_pc_sect Date: Thu, 19 Feb 2026 18:56:34 +0000 Message-ID: <20260219185638.360694-4-jan.vrany@labware.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260219185638.360694-1-jan.vrany@labware.com> References: <20260219185638.360694-1-jan.vrany@labware.com> X-ClientProxiedBy: LO2P265CA0447.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::27) To SA1PR17MB5365.namprd17.prod.outlook.com (2603:10b6:806:1d8::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR17MB5365:EE_|CH3PR17MB7196:EE_ X-MS-Office365-Filtering-Correlation-Id: c065f02a-6922-4c7b-3f9a-08de6fe8ca5c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?P8CPn2mQqlMVRwrojdvJ3msIlK/M6WZDDdhEPSyELOqKXvN3U7WSJ2yNfM0I?= =?us-ascii?Q?BGXagQJGn9EJT2WkaUJ6NxlCLQH1pvBToGVV3NnyzJVid0oGRcEvaBBpy1jy?= =?us-ascii?Q?FdqLBWLt2uDiEwTBBpRhYUmZEapVu7Y6koOPVFL9ej36TaA4OWme6zPUSR9h?= =?us-ascii?Q?DbJx4QCVaHDstwpsuHFJp5nfImilbjpgMctR0cV5iJbRsV3zvQkRsRkXP9QM?= =?us-ascii?Q?XciLZdXVzZfr1IlpbO1GPFrl+wq4qLSImzbn1z6zYXS5kmLPB1shfrsah1/I?= =?us-ascii?Q?+IQ9Q8FPGGVcyABZz54icXPwiapM/TDJznoqEKPL53dg/2eOtW+kLBrDtj84?= =?us-ascii?Q?sxoRMUOYVDHIZ4pTAt/bWs6UnYi81gF5WPeQL/fsauBh/zBFvaV16zrymWoC?= =?us-ascii?Q?O4SCHhTF3b8J7Izs3ur19Th0tyirBGJt7am2+RYf6ceCqhvBPBctV8wycDr0?= =?us-ascii?Q?0RyHTV0B13+/kjyss3LBEuV/K2Ye5C57FYQINVqrOSiSlt+h/AUaxcLwE0NP?= =?us-ascii?Q?B7SyJ91DytYg5Lv9E9aMp+jaXAp+txNnHElz6rSZliK8V/GRCNBZ1C72Kw92?= =?us-ascii?Q?IdgViF3MyCr1wZgYJ/0OHxE5WPC5fOlfdkT5OO+2Kerfh4KWH2hxCpbwJLVi?= =?us-asc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QAMEBCmvDPlj9xf1KMY1GtT+K?= =?us-ascii?Q?N3XESw7bXRFMYzrEwag=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA1PR17MB5365.namprd17.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lVaMmC6E6iGDL3tqYuLmhDtS4UWIequKf/PWcsG8qYFWfEA65zXu/TVuHiJL?= =?us-ascii?Q?3Xpdz/lo0A8HID00SDew/BsuiHOrMZFyZo/7kOb+N+gS1r+JWTzeBJMX2zaa?= =?us-ascii?Q?uVEKyEsAyDKj4jpVqLKFkEEdzNaJw/zRhXnkKeS6DJSm+Lut1v50+2A7wfo1?= =?us-ascii?Q?Hc6BEFzOZe38vm5BUh3KVGr7GutRqOZrkvj4qdz8tgcAzJCikOKjRSuEQ6qo?= =?us-ascii?Q?9gaHVyV6k19wXNZ7x8BUpZxg4V4icxqjZzDPSNlF/BITJgRNbAi3cRWSK2Fg?= =?us-ascii?Q?+eTGkWklQdo+LQRaDmAYOkRTRoGREtlCJ+AGMmqOVOs/lBZM5MKweD5RasrU?= =?us-ascii?Q?X5yCZbDvkIaQiSPvmNCjSS248QxTmAjU2Phpy7+k22RxC092F3SINGOLchMO?= =?us-ascii?Q?BQTCuAwgEE2wFggURcF/GH9H2X4XHf86VkvsqVDiT43LIBGlpzpsrEy8t5R9?= =?us-ascii?Q?m6mlpR/SPWGh4Yr+M7YIEXenvxM5zWFEOuVVhzk6VN6bX8aQ0mCiso5RmJDB?= =?us-ascii?Q?n35+/GR0qh2A8khMKSaV8EM+uVMvtTkbIkhd2Lb0wTqK1TboRm9Uzm8XetX8?= =?us-ascii?Q?P9PWJ4FuSvdevUGtt1dBX66WGuqDV1IY2j5GNzmnLp9xSrM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4jyBuJ721Syi5CpGa83bHi8P4boW4VHL0fLdut7Ga?= =?us-ascii?Q?xETv3eBGK7KEQx+Lo6v04qa8Iw711QPJtlZxBOFcJL2akqECk4dsfNz6VZcQ?= =?us-ascii?Q?TbW2IQ+z9mHYiWCjjyvnFG0P2vkeUuxoxs0banoLCb8Ddst5CY6dNQ4btGoi?= =?us-ascii?Q?ZZqPQnjI3tYnweKIKebQrzNAvvvLg0unqTydEoYQJagDrstnt6J2LNCSbXA5?= =?us-ascii?Q?wB5RFZGPQA=3D=3D?= X-OriginatorOrg: labware.com X-MS-Exchange-CrossTenant-Network-Message-Id: c065f02a-6922-4c7b-3f9a-08de6fe8ca5c X-MS-Exchange-CrossTenant-AuthSource: SA1PR17MB5365.namprd17.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2026 18:57:55.2049 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b5db0322-1aa0-4c0a-859c-ad0f96966f4c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ogcq8gbuyGAl9EMO1Fx8ZSEmXKcqldc1Qr93yuPiuEEixCTsmzBXHjgHKYN8Iiebahe+0FuDtcH8sChRY27fVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR17MB7196 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 4oX7t91ofAp3AKgNVEENEhrSyrOE9h67Sa29jc-doY0_1771527477 X-Mimecast-Originator: labware.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252 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 This commit simplifies find_compunit_symtab_for_pc_sect by removing the code that walks over all (currently expanded) CUs and delegating to quick_symbol_functions::find_pc_sect_compunit_symtab instead. With this commit on Linux x86_64 I see no regression. With -readnow there are some regressions, mainly caused by slightly different order of expanding CUs. Since there's a proposal to remove -readnow support, I have not fixed nor investigated failing tests in depth. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D33829 --- gdb/dwarf2/read.c | 8 ----- gdb/symtab.c | 91 ----------------------------------------------- 2 files changed, 99 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 702dca8e5e9..35046439235 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -2156,17 +2156,9 @@ dwarf2_base_index_functions::find_pc_sect_compunit_s= ymtab if (data =3D=3D nullptr) return nullptr; =20 - if (warn_if_readin && per_objfile->symtab_set_p (data)) - warning (_("(Internal error: pc %s in read in CU, but not in symtab.)"= ), -=09 paddress (objfile->arch (), pc)); - compunit_symtab *result =3D find_pc_sect_compunit_symtab_includes (dw2_instantiate_symtab (data, per_objfile, false), pc); =20 - if (warn_if_readin && result =3D=3D nullptr) - warning (_("(Error: pc %s in address map, but not in symtab.)"), -=09 paddress (objfile->arch (), pc)); - return result; } =20 diff --git a/gdb/symtab.c b/gdb/symtab.c index cd3bf876551..4eea86319f8 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2742,9 +2742,6 @@ iterate_over_symbols (const struct block *block, struct compunit_symtab * find_compunit_symtab_for_pc_sect (CORE_ADDR pc, struct obj_section *sectio= n) { - struct compunit_symtab *best_cust =3D NULL; - CORE_ADDR best_cust_range =3D 0; - /* If we know that this is not a text address, return failure. This is necessary because we loop based on the block's high and low code addresses, which do not include the data ranges, and because @@ -2755,94 +2752,6 @@ find_compunit_symtab_for_pc_sect (CORE_ADDR pc, stru= ct obj_section *section) if (msymbol.minsym && msymbol.minsym->data_p ()) return NULL; =20 - /* Search all symtabs for the one whose file contains our address, and w= hich - is the smallest of all the ones containing the address. This is desi= gned - to deal with a case like symtab a is at 0x1000-0x2000 and 0x3000-0x40= 00 - and symtab b is at 0x2000-0x3000. So the GLOBAL_BLOCK for a is from - 0x1000-0x4000, but for address 0x2345 we want to return symtab b. - - This happens for native ecoff format, where code from included files - gets its own symtab. The symtab for the included file should have - been read in already via the dependency mechanism. - It might be swifter to create several symtabs with the same name - like xcoff does (I'm not sure). - - It also happens for objfiles that have their functions reordered. - For these, the symtab we are looking for is not necessarily read in. = */ - - for (objfile &obj_file : current_program_space->objfiles ()) - { - for (compunit_symtab &cust : obj_file.compunits ()) -=09{ -=09 const struct blockvector *bv =3D cust.blockvector (); -=09 const struct block *global_block =3D bv->global_block (); -=09 CORE_ADDR start =3D global_block->start (); -=09 CORE_ADDR end =3D global_block->end (); -=09 bool in_range_p =3D start <=3D pc && pc < end; -=09 if (!in_range_p) -=09 continue; - -=09 if (bv->map () !=3D nullptr) -=09 { -=09 if (bv->map ()->find (pc) =3D=3D nullptr) -=09=09continue; - -=09 return &cust; -=09 } - -=09 CORE_ADDR range =3D end - start; -=09 if (best_cust !=3D nullptr -=09 && range >=3D best_cust_range) -=09 /* Cust doesn't have a smaller range than best_cust, skip it. */ -=09 continue; - -=09 /* For an objfile that has its functions reordered, -=09 find_pc_psymtab will find the proper partial symbol table -=09 and we simply return its corresponding symtab. */ -=09 /* In order to better support objfiles that contain both -=09 stabs and coff debugging info, we continue on if a psymtab -=09 can't be found. */ -=09 struct compunit_symtab *result -=09 =3D obj_file.find_pc_sect_compunit_symtab (msymbol, pc, -=09=09=09=09=09=09 section, 0); -=09 if (result !=3D nullptr) -=09 return result; - -=09 if (section !=3D 0) -=09 { -=09 struct symbol *found_sym =3D nullptr; - -=09 for (int b_index =3D GLOBAL_BLOCK; -=09=09 b_index <=3D STATIC_BLOCK && found_sym =3D=3D nullptr; -=09=09 ++b_index) -=09=09{ -=09=09 const struct block *b =3D bv->block (b_index); -=09=09 for (struct symbol *sym : block_iterator_range (b)) -=09=09 { -=09=09 if (matching_obj_sections (sym->obj_section (&obj_file), -=09=09=09=09=09=09 section)) -=09=09=09{ -=09=09=09 found_sym =3D sym; -=09=09=09 break; -=09=09=09} -=09=09 } -=09=09} -=09 if (found_sym =3D=3D nullptr) -=09=09continue;=09=09/* No symbol in this symtab matches -=09=09=09=09=09 section. */ -=09 } - -=09 /* Cust is best found so far, save it. */ -=09 best_cust =3D &cust; -=09 best_cust_range =3D range; -=09} - } - - if (best_cust !=3D NULL) - return best_cust; - - /* Not found in symtabs, search the "quick" symtabs (e.g. psymtabs). */ - for (objfile &objf : current_program_space->objfiles ()) { struct compunit_symtab *result --=20 2.51.0