From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id RB34GFE88GigbjYAWB0awg (envelope-from ) for ; Wed, 15 Oct 2025 20:29:05 -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=teoW+fGT; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5231D1E0BA; Wed, 15 Oct 2025 20:29:05 -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 52B401E04C for ; Wed, 15 Oct 2025 20:29:04 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 39B423858286 for ; Thu, 16 Oct 2025 00:29:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39B423858286 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=teoW+fGT Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 11AD838582AB for ; Thu, 16 Oct 2025 00:18:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 11AD838582AB 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 11AD838582AB 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=C3GSeO8v+LHMt4rY8bfNOgMFN1x7Tm6bKkfNIHHTDpc24ZkaaNWvbV1MKHQjcw8gQNLCQ2HC5hHdzG95v+DNnohHBG2iMfVwTQj/O3yk2jAHuXCkcwJ91SlaGi3vrGbTfslnVRD8cI7ffelsMJSF6sihIWRCU7l4yQzxLKZzpTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760573887; c=relaxed/simple; bh=8xyeBk8nWoHzImA3cC13UzlTgO8sJqViFRorMQBbvj8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MJx38VUoephTFO/8tvZs3zCf2dbQRNauyLbsFU+HQnX1AvkdrHEM3hakEaqBP1cU/ZSBSSvu6mMsIG1fWxgas6fh2+kW+lxWqBJY9BX0oeHF1j2IQAKEyAFh364WAnyKKmsQMtz1+KqCxefEiK+wU3fhYffcff07wDQagHQZO3A= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11AD838582AB 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 59G0I1gj071295 (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 59G0I1gj071295 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1760573886; bh=Txz4EhPGGS6CnnSdOFxS7nKc+CQoXC2sdlzxI4NrfrM=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=teoW+fGTymZI5mhXlcoeCH9O9aATpq05R7fR7fkhqPHAc6hlhTJas6au/D5ZZ5g4g 0cKnb8mqolHZKMM2bSn00hT3olUpeJe5qX/BHl3RM/ODnpy7FQASPN76p/XAhIi3GL fwOABzKJGHO0P8BoqDmMpY0koHSLeDxEQCOaKrT6PjSLxI1TjdI0+I2r2qrnmB/tB3 7YgGj7WVShX6choMagKEznmA8pSXeBlDNMXALtNB9FjoG9+iAvXdMgY7WeSa8mJOZT qKQvMVrW8aHFJ2+MISsb12aj1kycefruXZqVR0LTEHZ7lDatV34/qKeev7qX3pwj3L TNpm4bM3fCV9w== Received: by simark.ca (Postfix) id C46561E11E; Wed, 15 Oct 2025 20:11:59 -0400 (EDT) From: simon.marchi@polymtl.ca To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 06/10] gdb: rename find_pc_line_pc_range -> find_line_pc_range_for_pc Date: Wed, 15 Oct 2025 20:08:00 -0400 Message-ID: <20251016001154.3969223-7-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: Iff7590d9d4e914ae74ba4818f338e911f7ab5416 --- gdb/infcmd.c | 6 +++--- gdb/symtab.c | 2 +- gdb/symtab.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/infcmd.c b/gdb/infcmd.c index bb929240978f..ff49c2e29253 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -964,9 +964,9 @@ prepare_one_step (thread_info *tp, struct step_command_fsm *sm) } pc = get_frame_pc (frame); - find_pc_line_pc_range (pc, - &tp->control.step_range_start, - &tp->control.step_range_end); + find_line_pc_range_for_pc (pc, + &tp->control.step_range_start, + &tp->control.step_range_end); if (execution_direction == EXEC_REVERSE) { diff --git a/gdb/symtab.c b/gdb/symtab.c index 8a65fdfb226a..f3377ff2a7eb 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -3505,7 +3505,7 @@ find_line_common (const linetable *l, int lineno, } bool -find_pc_line_pc_range (CORE_ADDR pc, CORE_ADDR *startptr, CORE_ADDR *endptr) +find_line_pc_range_for_pc (CORE_ADDR pc, CORE_ADDR *startptr, CORE_ADDR *endptr) { struct symtab_and_line sal; diff --git a/gdb/symtab.h b/gdb/symtab.h index 795611eacf18..1d419dd16e68 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2315,7 +2315,7 @@ extern struct compunit_symtab *find_compunit_symtab_for_pc (CORE_ADDR); extern struct compunit_symtab * find_compunit_symtab_for_pc_sect (CORE_ADDR, struct obj_section *); -extern bool find_pc_line_pc_range (CORE_ADDR, CORE_ADDR *, CORE_ADDR *); +extern bool find_line_pc_range_for_pc (CORE_ADDR, CORE_ADDR *, CORE_ADDR *); extern void reread_symbols (int from_tty); -- 2.51.0