From patchwork Thu Dec 1 18:32:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 61329 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D9B33858C50 for ; Thu, 1 Dec 2022 18:33:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D9B33858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669919608; bh=3vJJ+rYi2PXJeA6Flnl7R02zyDzbFdfiwjeY2M54IFU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Xa9k85/FVStYk5d7FgbB01wpNeEmx2uSU3MUYHVRSImES4VUBb8EuK5rQaimOEp/h 8c3E23z3M5CZCslm9rpQxMpQBrysne4px63DP2Gzcchg93qaK6PyI9sXdlhluZHY4O mIQC4q1iGS2g9+mvV7Ba6aZMf8qh4NgsCP/946dE= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id E17363858D32 for ; Thu, 1 Dec 2022 18:33:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E17363858D32 X-ASG-Debug-ID: 1669919569-0c856e6c057b550001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id K3k7LS9GVBV4krFH (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO); Thu, 01 Dec 2022 13:32:49 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@efficios.com X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from smarchi-efficios.internal.efficios.com (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtp.ebox.ca (Postfix) with ESMTP id 7CD93441B21; Thu, 1 Dec 2022 13:32:49 -0500 (EST) X-Barracuda-RBL-IP: 192.222.180.24 X-Barracuda-Effective-Source-IP: 192-222-180-24.qc.cable.ebox.net[192.222.180.24] X-Barracuda-Apparent-Source-IP: 192.222.180.24 To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] gdb: make frame_register static Date: Thu, 1 Dec 2022 13:32:49 -0500 X-ASG-Orig-Subj: [pushed] gdb: make frame_register static Message-Id: <20221201183249.1062823-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1669919569 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1983 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.102532 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-3498.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Simon Marchi via Gdb-patches From: Simon Marchi Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" From: Simon Marchi It is only used inside frame.c. Change-Id: I44eb46a5992412f8f8b4954b2284b0ef3b549504 --- gdb/frame.c | 7 ++++++- gdb/frame.h | 11 ----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/gdb/frame.c b/gdb/frame.c index c8c4ec817a42..b4079ef833e8 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1166,7 +1166,12 @@ frame_register_unwind (frame_info_ptr next_frame, int regnum, release_value (value); } -void +/* Get the value of the register that belongs to this FRAME. This + function is a wrapper to the call sequence ``frame_register_unwind + (get_next_frame (FRAME))''. As per frame_register_unwind(), if + VALUEP is NULL, the registers value is not fetched/computed. */ + +static void frame_register (frame_info_ptr frame, int regnum, int *optimizedp, int *unavailablep, enum lval_type *lvalp, CORE_ADDR *addrp, int *realnump, gdb_byte *bufferp) diff --git a/gdb/frame.h b/gdb/frame.h index 6b841fd50636..100ab1fe48eb 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -511,17 +511,6 @@ extern ULONGEST get_frame_register_unsigned (frame_info_ptr frame, extern bool read_frame_register_unsigned (frame_info_ptr frame, int regnum, ULONGEST *val); -/* Get the value of the register that belongs to this FRAME. This - function is a wrapper to the call sequence ``frame_register_unwind - (get_next_frame (FRAME))''. As per frame_register_unwind(), if - VALUEP is NULL, the registers value is not fetched/computed. */ - -extern void frame_register (frame_info_ptr frame, int regnum, - int *optimizedp, int *unavailablep, - enum lval_type *lvalp, - CORE_ADDR *addrp, int *realnump, - gdb_byte *valuep); - /* The reverse. Store a register value relative to the specified frame. Note: this call makes the frame's state undefined. The register and frame caches must be flushed. */