From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113627 invoked by alias); 23 May 2018 04:59:09 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 113268 invoked by uid 89); 23 May 2018 04:59:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 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: gateway34.websitewelcome.com Received: from gateway34.websitewelcome.com (HELO gateway34.websitewelcome.com) (192.185.148.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 May 2018 04:59:02 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway34.websitewelcome.com (Postfix) with ESMTP id E66C229E991 for ; Tue, 22 May 2018 23:59:00 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id LLrYfwLTnBcCXLLrYfqn7i; Tue, 22 May 2018 23:59:00 -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 1fLLrY-003S5D-N6; Tue, 22 May 2018 23:59:00 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 08/42] Move processing_acc_compilation to dbxread.c Date: Wed, 23 May 2018 04:59:00 -0000 Message-Id: <20180523045851.11660-9-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: 1fLLrY-003S5D-N6 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: 9 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-05/txt/msg00586.txt.bz2 processing_acc_compilation is only used in dbxread.c, so move it there. gdb/ChangeLog 2018-05-22 Tom Tromey * dbxread.c (processing_acc_compilation): New global. * buildsym.h (processing_acc_compilation): Don't declare. --- gdb/ChangeLog | 5 +++++ gdb/buildsym.h | 8 -------- gdb/dbxread.c | 8 ++++++++ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 61ffc0fd89..088c1d790e 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -74,14 +74,6 @@ EXTERN struct subfile *current_subfile; EXTERN unsigned char processing_gcc_compilation; -/* When set, we are processing a .o file compiled by sun acc. This is - misnamed; it refers to all stabs-in-elf implementations which use - N_UNDF the way Sun does, including Solaris gcc. Hopefully all - stabs-in-elf implementations ever invented will choose to be - compatible. */ - -EXTERN unsigned char processing_acc_compilation; - /* Count symbols as they are processed, for error messages. */ EXTERN unsigned int symnum; diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 31de714cc7..eed4a28b90 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -145,6 +145,14 @@ static unsigned int next_file_string_table_offset; static int symfile_relocatable = 0; +/* When set, we are processing a .o file compiled by sun acc. This is + misnamed; it refers to all stabs-in-elf implementations which use + N_UNDF the way Sun does, including Solaris gcc. Hopefully all + stabs-in-elf implementations ever invented will choose to be + compatible. */ + +static unsigned char processing_acc_compilation; + /* The lowest text address we have yet encountered. This is needed because in an a.out file, there is no header field which tells us -- 2.13.6