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]

Some somread.c cleanups


This removes some redundant prototypes and includes "solib-som.h" such
that we no longer get a compiler warning.

Committed as obvious,

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* somread.c: Include "solib-som.h".
	(som_symfile_init, som_new_init, som_symfile_read,
	som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
	redudant prototypes.
	* Makefile.in (somread.o): Update dependencies.


Index: somread.c
===================================================================
RCS file: /cvs/src/src/gdb/somread.c,v
retrieving revision 1.25
diff -u -p -r1.25 somread.c
--- somread.c 23 Oct 2004 16:18:09 -0000 1.25
+++ somread.c 18 Dec 2004 14:14:42 -0000
@@ -35,23 +35,11 @@
 #include "som.h"
 #include "libhppa.h"
 
-/* Various things we might complain about... */
+#include "solib-som.h"
 
+/* Prototypes for local functions.  */
 static int init_import_symbols (struct objfile *objfile);
 
-static void som_symfile_init (struct objfile *);
-
-static void som_new_init (struct objfile *);
-
-static void som_symfile_read (struct objfile *, int);
-
-static void som_symfile_finish (struct objfile *);
-
-static void som_symtab_read (bfd *, struct objfile *,
-			     struct section_offsets *);
-
-static void som_symfile_offsets (struct objfile *, struct section_addr_info *);
-
 /* FIXME: These should really be in a common header somewhere */
 
 extern void hpread_build_psymtabs (struct objfile *, int);
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.678
diff -u -p -r1.678 Makefile.in
--- Makefile.in 13 Dec 2004 04:06:15 -0000 1.678
+++ Makefile.in 18 Dec 2004 14:14:46 -0000
@@ -2515,7 +2515,8 @@ sol-thread.o: sol-thread.c $(defs_h) $(g
 	$(symfile_h) $(gdb_string_h) $(gregset_h)
 somread.o: somread.c $(defs_h) $(bfd_h) $(symtab_h) $(symfile_h) \
 	$(objfiles_h) $(buildsym_h) $(stabsread_h) $(gdb_stabs_h) \
-	$(complaints_h) $(gdb_string_h) $(demangle_h) $(som_h) $(libhppa_h)
+	$(complaints_h) $(gdb_string_h) $(demangle_h) $(som_h) $(libhppa_h) \
+	$(solib_som_h)
 solib-som.o: solib-som.c $(defs_h) $(som_h) $(symtab_h) $(bfd_h) $(symfile_h) \
 	$(objfiles_h) $(gdbcore_h) $(target_h) $(inferior_h) $(hppa_tdep_h) \
 	$(solist_h)


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