From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gU5hINE78GgSbTYAWB0awg (envelope-from ) for ; Wed, 15 Oct 2025 20:26:57 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=wemOfcT4; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 7E7EC1E0BA; Wed, 15 Oct 2025 20:26:57 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 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 0F3461E04C for ; Wed, 15 Oct 2025 20:26:57 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D7B423858286 for ; Thu, 16 Oct 2025 00:26:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7B423858286 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=wemOfcT4 Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id B518E3857C5D for ; Thu, 16 Oct 2025 00:18:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B518E3857C5D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B518E3857C5D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760573887; cv=none; b=vcHDZOj7tzzwwp4c11FtiXW3ILpH1K3NowmuoOx9mgtfsYl9Q4wRFqfy/Xyd3cJKA/PFhezlV+M7IvN9/vfGs3VwXGxMfcrqLl40Q3kvAMfuU7agXA352YoelKYHdfj+qmS+QAeijF7ubvOM0VSCIk+XgalMT0PIJvrTl4g4rWk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760573887; c=relaxed/simple; bh=KYn6MwYl+quYgnMZKToL9gn0HTqaCQQEp5inUf1yACY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=sc6jvmF1naOum2VKGg+EuqjQnereQC0cHo7CNwwNl9qIztyvZapDyhn2eYwRGgExrLuG7C9uR+a55IebKUOxXWYHL3iAevmc8nwGU050pvcj9c+EuxvGJ+Uc88Dq/nBrNPaX823tsVpIFhhLVv+GZKhFAkmSHOKr8Te+J8e9ygI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B518E3857C5D Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 59G0I1uU071297 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Oct 2025 20:18:06 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 59G0I1uU071297 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1760573886; bh=mIzgMq/kn3FckGu5qr4M4RVs6mdTxyY2XgQf2fhi2y4=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=wemOfcT41LCEIyAYgj9RRw5DDTV5CeoZfTtz1zzFaU9JwIjQP5xyai34ehGG+ud+1 BZZsa7vl+dcYrr7rN8gczLMYmJzBh9uO2lky2/rjQB+UNZjxBhxJqZHNlD0fwZXwhW U8OotA52IUjRJI8UQFyqUlY2dzFSaIXBM9cAOVFW/Vxtvbh+FmDyCZD6Nw34h2taNg ayUsfLixujfNToGrBImaxM0rmjnUyn/VswjK9Dk9nYwRydlo8eYrz4MlAO7725/dgo W6f5nwr1zuDp+uoRpvpBqy9iblgi6EX3cBK0HxGvBeQuMMFdqOzkVF7CostvMAKXcu 7pGGRumMYarXA== Received: by simark.ca (Postfix) id 335A71E11B; Wed, 15 Oct 2025 20:11:59 -0400 (EDT) From: simon.marchi@polymtl.ca To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 05/10] gdb: rename find_pc_sect_compunit_symtab -> find_compunit_symtab_for_pc_sect Date: Wed, 15 Oct 2025 20:07:59 -0400 Message-ID: <20251016001154.3969223-6-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251016001154.3969223-1-simon.marchi@polymtl.ca> References: <20251016001154.3969223-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 16 Oct 2025 00:18:01 +0000 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 From: Simon Marchi Change-Id: Idb4941f6a24ddd97ee98d35a40bfbe7ceba82ec1 --- gdb/block.c | 2 +- gdb/blockframe.c | 2 +- gdb/symtab.c | 6 +++--- gdb/symtab.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gdb/block.c b/gdb/block.c index 9ce14849566b..42ace7c60cfa 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -183,7 +183,7 @@ blockvector_for_pc_sect (CORE_ADDR pc, struct obj_section *section, if (cust == NULL) { /* First search all symtabs for one whose file contains our pc */ - cust = find_pc_sect_compunit_symtab (pc, section); + cust = find_compunit_symtab_for_pc_sect (pc, section); if (cust == NULL) return 0; } diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 434208c7e269..654d635f8ba7 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -236,7 +236,7 @@ find_pc_partial_function_sym (CORE_ADDR pc, goto return_cached_value; msymbol = lookup_minimal_symbol_by_pc_section (mapped_pc, section); - compunit_symtab = find_pc_sect_compunit_symtab (mapped_pc, section); + compunit_symtab = find_compunit_symtab_for_pc_sect (mapped_pc, section); if (compunit_symtab != NULL) { diff --git a/gdb/symtab.c b/gdb/symtab.c index 0180c4eadac5..8a65fdfb226a 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2706,7 +2706,7 @@ iterate_over_symbols_terminated This will read in debug info as necessary. */ struct compunit_symtab * -find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section) +find_compunit_symtab_for_pc_sect (CORE_ADDR pc, struct obj_section *section) { struct compunit_symtab *best_cust = NULL; CORE_ADDR best_cust_range = 0; @@ -2827,7 +2827,7 @@ find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section) struct compunit_symtab * find_compunit_symtab_for_pc (CORE_ADDR pc) { - return find_pc_sect_compunit_symtab (pc, find_pc_mapped_section (pc)); + return find_compunit_symtab_for_pc_sect (pc, find_pc_mapped_section (pc)); } /* See symtab.h. */ @@ -3027,7 +3027,7 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent) symtab_and_line val; val.pspace = current_program_space; - compunit_symtab *cust = find_pc_sect_compunit_symtab (pc, section); + compunit_symtab *cust = find_compunit_symtab_for_pc_sect (pc, section); if (cust == NULL) { /* If no symbol information, return previous pc. */ diff --git a/gdb/symtab.h b/gdb/symtab.h index c8c43b9f7cf4..795611eacf18 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2313,7 +2313,7 @@ extern struct compunit_symtab *find_compunit_symtab_for_pc (CORE_ADDR); /* lookup full symbol table by address and section. */ extern struct compunit_symtab * - find_pc_sect_compunit_symtab (CORE_ADDR, struct obj_section *); + find_compunit_symtab_for_pc_sect (CORE_ADDR, struct obj_section *); extern bool find_pc_line_pc_range (CORE_ADDR, CORE_ADDR *, CORE_ADDR *); -- 2.51.0