This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Move processing_acc_compilation to dbxread.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=81cc346dc98678c5d196c7110795d8f2edfd8f50

commit 81cc346dc98678c5d196c7110795d8f2edfd8f50
Author: Tom Tromey <tom@tromey.com>
Date:   Sun May 20 11:04:16 2018 -0600

    Move processing_acc_compilation to dbxread.c
    
    processing_acc_compilation is only used in dbxread.c, so move it
    there.
    
    gdb/ChangeLog
    2018-07-16  Tom Tromey  <tom@tromey.com>
    
    	* dbxread.c (processing_acc_compilation): New global.
    	* buildsym.h (processing_acc_compilation): Don't declare.

Diff:
---
 gdb/ChangeLog  | 5 +++++
 gdb/buildsym.h | 8 --------
 gdb/dbxread.c  | 8 ++++++++
 3 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b73da5e..b053f8c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2018-07-16  Tom Tromey  <tom@tromey.com>
 
+	* dbxread.c (processing_acc_compilation): New global.
+	* buildsym.h (processing_acc_compilation): Don't declare.
+
+2018-07-16  Tom Tromey  <tom@tromey.com>
+
 	* xcoffread.c (aix_process_linenos, complete_symtab): Update.
 	* dbxread.c (read_ofile_symtab): Update.
 	* coffread.c (coff_start_symtab, coff_end_symtab): Update.
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 61ffc0f..088c1d7 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 f6059a8..ba0483e 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]