From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Ygg9CXbziGNyER8AWB0awg (envelope-from ) for ; Thu, 01 Dec 2022 13:33:26 -0500 Received: by simark.ca (Postfix, from userid 112) id 1CAF21E124; Thu, 1 Dec 2022 13:33:26 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ef+7K53g; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 379821E0D3 for ; Thu, 1 Dec 2022 13:33:25 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AE4FA3858C3A for ; Thu, 1 Dec 2022 18:33:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE4FA3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669919604; 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=ef+7K53g3tmhFTehAtF+Oo/J5zXMUobT+k7PJjWYmYy/sE4RWRBWtq0TWefH6xwPD kmddGFw3+tFJt6Ked5MSJ/PIChwqakgffWFUjwkNQUuo1bsB0i/J2JYK7TEXwuqXiM sU1pSm3CYyblVsEQMBxcSyVjoFca2kTULrOlfCpk= 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 Content-Transfer-Encoding: 8bit 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-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: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@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. */ -- 2.38.1