From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ljKNLE83/V/tMwAAWB0awg (envelope-from ) for ; Tue, 12 Jan 2021 00:44:47 -0500 Received: by simark.ca (Postfix, from userid 112) id 9FF3D1EF80; Tue, 12 Jan 2021 00:44:47 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [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 297C61EF7C for ; Tue, 12 Jan 2021 00:44:47 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D1EED388E834; Tue, 12 Jan 2021 05:44:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1EED388E834 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1610430286; bh=DkqxsIUKtwZaHjIdlGoWpYcARN0kZIFPo4N2OaLi7nw=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=vLEQWrZfM543xY1gGdAFrOOWXsnJPPGl1zKJDbFc5QDWdAOFvi+VEi7pTijk5N3Mi b0ZdPyKCSFfNAZvuliR+Z3Qm1pOuQDuKgBLTFL3J8x1wTp4AnR4LZkrddN0qvOH1Lw O/8dxwUOMwM6JCO0GS3zg+BcCOlreiZ2nUjGRIRE= Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 6C7FB388C002 for ; Tue, 12 Jan 2021 05:44:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6C7FB388C002 X-ASG-Debug-ID: 1610430282-0c856e6cd56904f0001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id sgdqR5wMuEPzNGVZ (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Jan 2021 00:44:42 -0500 (EST) X-Barracuda-Envelope-From: simon.marchi@polymtl.ca X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from simark.localdomain (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) by smtp.ebox.ca (Postfix) with ESMTP id AB064441B21; Tue, 12 Jan 2021 00:44:42 -0500 (EST) X-Barracuda-RBL-IP: 192.222.157.6 X-Barracuda-Effective-Source-IP: 192-222-157-6.qc.cable.ebox.net[192.222.157.6] X-Barracuda-Apparent-Source-IP: 192.222.157.6 To: gdb-patches@sourceware.org Subject: [PATCH 2/2] gdb: move read{now, never}_symbol_files declarations to symfile.h Date: Tue, 12 Jan 2021 00:44:41 -0500 X-ASG-Orig-Subj: [PATCH 2/2] gdb: move read{now, never}_symbol_files declarations to symfile.h Message-Id: <20210112054441.1188693-2-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210112054441.1188693-1-simon.marchi@polymtl.ca> References: <20210112054441.1188693-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1610430282 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1786 X-Barracuda-BRTS-Status: 1 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=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.87183 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@sourceware.org Sender: "Gdb-patches" ... since they are defined in symfile.c. gdb/ChangeLog: * top.h (readnow_symbol_files, readnever_symbol_files): Move declarations to ... * symfile.h: ... here. * symfile.c: Update doc. Change-Id: Ie35a80d236bea70947bc496f66f62c8c621670b4 --- gdb/symfile.c | 10 ++++++++-- gdb/symfile.h | 4 ++++ gdb/top.h | 4 ---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gdb/symfile.c b/gdb/symfile.c index 82693f913672..ec5d34ac7833 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -85,8 +85,14 @@ using clear_symtab_users_cleanup = FORWARD_SCOPE_EXIT (clear_symtab_users); /* Global variables owned by this file. */ -int readnow_symbol_files; /* Read full symbols immediately. */ -int readnever_symbol_files; /* Never read full symbols. */ + +/* See symfile.h. */ + +int readnow_symbol_files; + +/* See symfile.h. */ + +int readnever_symbol_files; /* Functions this file defines. */ diff --git a/gdb/symfile.h b/gdb/symfile.h index a6f8fafc8952..f1ce75457d67 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -641,4 +641,8 @@ extern gdb_bfd_ref_ptr find_separate_debug_file_in_section (struct objfile *); extern bool separate_debug_file_debug; +extern int readnow_symbol_files; +extern int readnever_symbol_files; + + #endif /* !defined(SYMFILE_H) */ diff --git a/gdb/top.h b/gdb/top.h index a08f448778ac..a31b19ae9542 100644 --- a/gdb/top.h +++ b/gdb/top.h @@ -273,10 +273,6 @@ extern void set_prompt (const char *s); extern int gdb_in_secondary_prompt_p (struct ui *ui); -/* From random places. */ -extern int readnow_symbol_files; -extern int readnever_symbol_files; - /* Perform _initialize initialization. */ extern void gdb_init (char *); -- 2.29.2