This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Add missing includes to alphanbsd-tdep.c and armnbsd-tdep.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 8 May 2004 19:33:27 +0200 (CEST)
- Subject: [PATCH] Add missing includes to alphanbsd-tdep.c and armnbsd-tdep.c
Fixes a few compiler warnings. Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* alphanbsd-tdep.c: Include "gdb_string.h".
* armnbsd-tdep.c: Update copyright year.
Include "gdb_string.h".
* Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
dependencies.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.564
diff -u -p -r1.564 Makefile.in
--- Makefile.in 8 May 2004 16:10:07 -0000 1.564
+++ Makefile.in 8 May 2004 17:31:56 -0000
@@ -1520,8 +1520,8 @@ alpha-mdebug-tdep.o: alpha-mdebug-tdep.c
alpha-nat.o: alpha-nat.c $(defs_h) $(gdb_string_h) $(inferior_h) \
$(gdbcore_h) $(target_h) $(regcache_h) $(alpha_tdep_h) $(gregset_h)
alphanbsd-tdep.o: alphanbsd-tdep.c $(defs_h) $(gdbcore_h) $(frame_h) \
- $(regcache_h) $(value_h) $(osabi_h) $(solib_svr4_h) $(alpha_tdep_h) \
- $(alphabsd_tdep_h) $(nbsd_tdep_h)
+ $(regcache_h) $(value_h) $(osabi_h) $(gdb_string_h) $(alpha_tdep_h) \
+ $(alphabsd_tdep_h) $(nbsd_tdep_h) $(solib_svr4_h)
alpha-osf1-tdep.o: alpha-osf1-tdep.c $(defs_h) $(frame_h) $(gdbcore_h) \
$(value_h) $(osabi_h) $(gdb_string_h) $(objfiles_h) $(alpha_tdep_h)
alpha-tdep.o: alpha-tdep.c $(defs_h) $(doublest_h) $(frame_h) \
@@ -1576,8 +1576,8 @@ arm-linux-tdep.o: arm-linux-tdep.c $(def
$(glibc_tdep_h)
armnbsd-nat.o: armnbsd-nat.c $(defs_h) $(arm_tdep_h) $(inferior_h) \
$(regcache_h) $(gdbcore_h)
-armnbsd-tdep.o: armnbsd-tdep.c $(defs_h) $(osabi_h) $(arm_tdep_h) \
- $(nbsd_tdep_h) $(solib_svr4_h)
+armnbsd-tdep.o: armnbsd-tdep.c $(defs_h) $(osabi_h) $(gdb_string_h) \
+ $(arm_tdep_h) $(nbsd_tdep_h) $(solib_svr4_h)
arm-tdep.o: arm-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(gdbcmd_h) \
$(gdbcore_h) $(gdb_string_h) $(dis_asm_h) $(regcache_h) \
$(doublest_h) $(value_h) $(arch_utils_h) $(osabi_h) \
Index: alphanbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alphanbsd-tdep.c,v
retrieving revision 1.21
diff -u -p -r1.21 alphanbsd-tdep.c
--- alphanbsd-tdep.c 1 May 2004 15:34:49 -0000 1.21
+++ alphanbsd-tdep.c 8 May 2004 17:31:56 -0000
@@ -27,11 +27,12 @@
#include "value.h"
#include "osabi.h"
-#include "solib-svr4.h"
+#include "gdb-string.h"
#include "alpha-tdep.h"
#include "alphabsd-tdep.h"
#include "nbsd-tdep.h"
+#include "solib-svr4.h"
static void
fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
@@ -224,8 +225,6 @@ void
_initialize_alphanbsd_tdep (void)
{
gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_NETBSD_ELF,
- alphanbsd_init_abi);
- gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD_ELF,
alphanbsd_init_abi);
deprecated_add_core_fns (&alphanbsd_core_fns);
Index: armnbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/armnbsd-tdep.c,v
retrieving revision 1.11
diff -u -p -r1.11 armnbsd-tdep.c
--- armnbsd-tdep.c 25 Mar 2004 16:52:42 -0000 1.11
+++ armnbsd-tdep.c 8 May 2004 17:31:56 -0000
@@ -1,5 +1,6 @@
/* Target-specific functions for ARM running under NetBSD.
- Copyright 2002, 2003 Free Software Foundation, Inc.
+
+ Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -20,6 +21,8 @@
#include "defs.h"
#include "osabi.h"
+
+#include "gdb_string.h"
#include "arm-tdep.h"
#include "nbsd-tdep.h"