From patchwork Wed May 23 04:58:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 27424 Received: (qmail 113943 invoked by alias); 23 May 2018 04:59:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 113380 invoked by uid 89); 23 May 2018 04:59:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway21.websitewelcome.com Received: from gateway21.websitewelcome.com (HELO gateway21.websitewelcome.com) (192.185.45.95) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 May 2018 04:59:04 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway21.websitewelcome.com (Postfix) with ESMTP id F3BE6400CAC88 for ; Tue, 22 May 2018 23:59:02 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id LLrafroiEPvAdLLraf7FG3; Tue, 22 May 2018 23:59:02 -0500 X-Authority-Reason: nr=8 Received: from 174-29-44-154.hlrn.qwest.net ([174.29.44.154]:56108 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fLLra-003S5D-Ow; Tue, 22 May 2018 23:59:02 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 14/42] Move scan_file_globals declaration to stabsread.h Date: Tue, 22 May 2018 22:58:23 -0600 Message-Id: <20180523045851.11660-15-tom@tromey.com> In-Reply-To: <20180523045851.11660-1-tom@tromey.com> References: <20180523045851.11660-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1fLLra-003S5D-Ow X-Source-Sender: 174-29-44-154.hlrn.qwest.net (bapiya.Home) [174.29.44.154]:56108 X-Source-Auth: tom+tromey.com X-Email-Count: 15 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes scan_file_globals is defined in stabsread.c, so move its declaration to stabsread.h. gdb/ChangeLog 2018-05-22 Tom Tromey * stabsread.h (scan_file_globals): Move from buildsym.h. * buildsym.h (scan_file_globals): Move to stabsread.h. --- gdb/ChangeLog | 5 +++++ gdb/buildsym.h | 4 ---- gdb/stabsread.h | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 77fc5bdd3c..f70777946a 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -205,10 +205,6 @@ extern struct compunit_symtab *end_expandable_symtab (CORE_ADDR end_addr, extern void augment_type_symtab (void); -/* Defined in stabsread.c. */ - -extern void scan_file_globals (struct objfile *objfile); - extern void buildsym_init (); extern struct context_stack *push_context (int desc, CORE_ADDR valu); diff --git a/gdb/stabsread.h b/gdb/stabsread.h index ce254e65d0..a5f327012d 100644 --- a/gdb/stabsread.h +++ b/gdb/stabsread.h @@ -221,4 +221,6 @@ extern void free_header_files (void); extern void init_header_files (void); +extern void scan_file_globals (struct objfile *objfile); + #undef EXTERN