This is the mail archive of the gdb-patches@sources.redhat.com 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]

[ob] Move extern ecoff_relocate_cfi to mdebugread.h


Hello,

Per the doco, foo.c should put its extern declarations in foo.h. This does it for ecoff_relocate_cfi and mdebugread.h.

committed,
Andrew
2004-10-30  Andrew Cagney  <cagney@gnu.org>

	* objfiles.c: Include "mdebugread.h".
	* mdebugread.c: Include "mdebugread.h".
	(ecoff_relocate_cfi): Delete.
	* config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
	* config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
	* mdebugread.h (ecoff_relocate_efi): New file.
	* Makefile.in: Update dependencies.
	
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.648
diff -p -u -r1.648 Makefile.in
--- Makefile.in	30 Oct 2004 21:40:48 -0000	1.648
+++ Makefile.in	31 Oct 2004 03:40:47 -0000
@@ -727,6 +727,7 @@ macroexp_h = macroexp.h
 macroscope_h = macroscope.h $(macrotab_h) $(symtab_h)
 macrotab_h = macrotab.h
 main_h = main.h
+mdebugread_h = mdebugread.h
 memattr_h = memattr.h
 mips_mdebug_tdep_h = mips-mdebug-tdep.h
 mipsnbsd_tdep_h = mipsnbsd-tdep.h
@@ -2221,8 +2222,8 @@ mcore-tdep.o: mcore-tdep.c $(defs_h) $(f
 mdebugread.o: mdebugread.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(gdbcore_h) \
 	$(objfiles_h) $(gdb_obstack_h) $(buildsym_h) $(stabsread_h) \
 	$(complaints_h) $(demangle_h) $(gdb_assert_h) $(block_h) \
-	$(dictionary_h) $(coff_sym_h) $(coff_symconst_h) $(gdb_stat_h) \
-	$(gdb_string_h) $(bfd_h) $(coff_ecoff_h) $(libaout_h) \
+	$(dictionary_h) $(mdebugread_h) $(coff_sym_h) $(coff_symconst_h) \
+	$(gdb_stat_h) $(gdb_string_h) $(bfd_h) $(coff_ecoff_h) $(libaout_h) \
 	$(aout_aout64_h) $(aout_stab_gnu_h) $(expression_h)
 memattr.o: memattr.c $(defs_h) $(command_h) $(gdbcmd_h) $(memattr_h) \
 	$(target_h) $(value_h) $(language_h) $(gdb_string_h)
@@ -2297,9 +2298,9 @@ objc-lang.o: objc-lang.c $(defs_h) $(sym
 	$(gdb_regex_h) $(regcache_h) $(block_h) $(infcall_h) $(valprint_h) \
 	$(gdb_assert_h)
 objfiles.o: objfiles.c $(defs_h) $(bfd_h) $(symtab_h) $(symfile_h) \
-	$(objfiles_h) $(gdb_stabs_h) $(target_h) $(bcache_h) $(gdb_assert_h) \
-	$(gdb_stat_h) $(gdb_obstack_h) $(gdb_string_h) $(hashtab_h) \
-	$(breakpoint_h) $(block_h) $(dictionary_h)
+	$(objfiles_h) $(gdb_stabs_h) $(target_h) $(bcache_h) $(mdebugread_h) \
+	$(gdb_assert_h) $(gdb_stat_h) $(gdb_obstack_h) $(gdb_string_h) \
+	$(hashtab_h) $(breakpoint_h) $(block_h) $(dictionary_h)
 observer.o: observer.c $(defs_h) $(observer_h) $(command_h) $(gdbcmd_h) \
 	$(observer_inc)
 ocd.o: ocd.c $(defs_h) $(gdbcore_h) $(gdb_string_h) $(frame_h) $(inferior_h) \
Index: mdebugread.c
===================================================================
RCS file: /cvs/src/src/gdb/mdebugread.c,v
retrieving revision 1.66
diff -p -u -r1.66 mdebugread.c
--- mdebugread.c	31 Oct 2004 02:59:21 -0000	1.66
+++ mdebugread.c	31 Oct 2004 03:40:49 -0000
@@ -56,13 +56,13 @@
 #include "gdb_assert.h"
 #include "block.h"
 #include "dictionary.h"
+#include "mdebugread.h"
 
 /* These are needed if the tm.h file does not contain the necessary
    mips specific definitions.  */
 
 #ifndef MDEBUG_EFI_SYMBOL_NAME
 #define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
 #include "coff/sym.h"
 #include "coff/symconst.h"
 struct mdebug_extra_func_info
Index: mdebugread.h
===================================================================
RCS file: mdebugread.h
diff -N mdebugread.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ mdebugread.h	31 Oct 2004 03:40:49 -0000
@@ -0,0 +1,27 @@
+/* Read a symbol table in ECOFF format (Third-Eye).
+
+   Copyright 2004 Free Software Foundation, Inc.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef MDEBUGREAD_H
+#define MDEBUGREAD_H
+
+extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
+
+#endif /* MDEBUGREAD_H */
Index: objfiles.c
===================================================================
RCS file: /cvs/src/src/gdb/objfiles.c,v
retrieving revision 1.57
diff -p -u -r1.57 objfiles.c
--- objfiles.c	31 Oct 2004 02:59:21 -0000	1.57
+++ objfiles.c	31 Oct 2004 03:40:49 -0000
@@ -33,7 +33,7 @@
 #include "gdb-stabs.h"
 #include "target.h"
 #include "bcache.h"
-
+#include "mdebugread.h"
 #include "gdb_assert.h"
 #include <sys/types.h>
 #include "gdb_stat.h"
Index: config/alpha/tm-alpha.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-alpha.h,v
retrieving revision 1.31
diff -p -u -r1.31 tm-alpha.h
--- config/alpha/tm-alpha.h	31 Oct 2004 02:59:21 -0000	1.31
+++ config/alpha/tm-alpha.h	31 Oct 2004 03:40:49 -0000
@@ -35,7 +35,6 @@ struct symbol;
    alpha_extra_func_info_t's off of this.  */
 
 #define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
 
 #define RA_REGNUM 26		/* XXXJRT needed by mdebugread.c */
 
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.72
diff -p -u -r1.72 tm-mips.h
--- config/mips/tm-mips.h	31 Oct 2004 02:59:21 -0000	1.72
+++ config/mips/tm-mips.h	31 Oct 2004 03:40:49 -0000
@@ -49,7 +49,6 @@ extern int mips_step_skips_delay (CORE_A
    hang mdebug_extra_func_info's off of this.  */
 
 #define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
 
 /* Specific information about a procedure.
    This overlays the MIPS's PDR records, 

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