]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-07-07 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Mon, 7 Jul 2003 15:57:29 +0000 (15:57 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 7 Jul 2003 15:57:29 +0000 (15:57 +0000)
* Makefile.in (sparc_tdep_h): New.
(sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
(sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
* sparc-linux-nat.c: Include "sparc-tdep.h".
* sparc-nat.c: Likewise.
* sparc-tdep.c: Likewise.
* sparc64nbsd-nat.c: Likewise.
* sparcnbsd-nat.c: Likewise.
* sparcnbsd-tdep.c: Likewise.
* sparc-tdep.h: New file.
* config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
and sparc_npc_regnum.

gdb/ChangeLog
gdb/Makefile.in
gdb/config/sparc/tm-sparc.h
gdb/sparc-linux-nat.c
gdb/sparc-nat.c
gdb/sparc-tdep.c
gdb/sparc64nbsd-nat.c
gdb/sparcnbsd-nat.c
gdb/sparcnbsd-tdep.c

index 7453feac7b7fad2dfcac5be30993ddcb5093fe9f..df42a176a1f670e5665bb8b02c6ebc9dedb9769d 100644 (file)
@@ -1,3 +1,18 @@
+2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
+
+       * Makefile.in (sparc_tdep_h): New.
+       (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
+       (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
+       * sparc-linux-nat.c: Include "sparc-tdep.h".
+       * sparc-nat.c: Likewise.
+       * sparc-tdep.c: Likewise.
+       * sparc64nbsd-nat.c: Likewise.
+       * sparcnbsd-nat.c: Likewise.
+       * sparcnbsd-tdep.c: Likewise.
+       * sparc-tdep.h: New file.
+       * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
+       and sparc_npc_regnum.
+
 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
 
        * mips-linux-nat.c (mips_linux_cannot_fetch_register)
index ce75a3a8c3be00dd2826436e69bc1e8717684207..7fb734687d3bb9530a90345c110aae91b6e4a200 100644 (file)
@@ -734,6 +734,7 @@ solib_h = solib.h
 solist_h = solist.h
 somsolib_h = somsolib.h
 source_h = source.h
+sparc_tdep_h = sparc-tdep.h
 sparcnbsd_tdep_h = sparcnbsd-tdep.h
 srec_h = srec.h
 stabsread_h = stabsread.h
@@ -2256,15 +2257,17 @@ source.o: source.c $(defs_h) $(symtab_h) $(expression_h) $(language_h) \
        $(gdb_string_h) $(gdb_stat_h) $(gdbcore_h) $(gdb_regex_h) \
        $(symfile_h) $(objfiles_h) $(annotate_h) $(gdbtypes_h) $(linespec_h) \
        $(filenames_h) $(completer_h) $(ui_out_h) $(readline_h)
-sparc-linux-nat.o: sparc-linux-nat.c $(defs_h) $(regcache_h) $(gregset_h)
+sparc-linux-nat.o: sparc-linux-nat.c $(defs_h) $(regcache_h) $(sparc_tdep_h) \
+       $(gregset_h)
 sparc-nat.o: sparc-nat.c $(defs_h) $(inferior_h) $(target_h) $(gdbcore_h) \
-       $(regcache_h) $(gdb_wait_h)
+       $(regcache_h) $(sparc_tdep_h) $(gdb_wait_h)
 sparc-stub.o: sparc-stub.c
 sparc-tdep.o: sparc-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) $(inferior_h) \
        $(target_h) $(value_h) $(bfd_h) $(gdb_string_h) $(regcache_h) \
-       $(osabi_h) $(gregset_h) $(gdbcore_h) $(gdb_assert_h) $(symfile_h)
+       $(osabi_h) $(gregset_h) $(gdbcore_h) $(gdb_assert_h) $(symfile_h) \
+       $(sparc_tdep_h)
 sparc64nbsd-nat.o: sparc64nbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
-       $(sparcnbsd_tdep_h)
+       $(sparcnbsd_tdep_h) $(sparc_tdep_h)
 sparcl-stub.o: sparcl-stub.c
 sparcl-tdep.o: sparcl-tdep.c $(defs_h) $(gdbcore_h) $(breakpoint_h) \
        $(target_h) $(serial_h) $(regcache_h)
@@ -2273,10 +2276,10 @@ sparclet-rom.o: sparclet-rom.c $(defs_h) $(gdbcore_h) $(target_h) \
        $(regcache_h)
 sparclet-stub.o: sparclet-stub.c
 sparcnbsd-nat.o: sparcnbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
-       $(sparcnbsd_tdep_h)
+       $(sparcnbsd_tdep_h) $(sparc_tdep_h)
 sparcnbsd-tdep.o: sparcnbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \
        $(target_h) $(value_h) $(osabi_h) $(sparcnbsd_tdep_h) $(nbsd_tdep_h) \
-       $(solib_svr4_h)
+       $(solib_svr4_h) $(sparc_tdep_h)
 stabsread.o: stabsread.c $(defs_h) $(gdb_string_h) $(bfd_h) $(gdb_obstack_h) \
        $(symtab_h) $(gdbtypes_h) $(expression_h) $(symfile_h) $(objfiles_h) \
        $(aout_stab_gnu_h) $(libaout_h) $(aout_aout64_h) $(gdb_stabs_h) \
index 4f8acaf4448b1ba440a9015dba75a5b2b38c6928..202dad13baf8b71b331dcad2bd58c11f9599e3f3 100644 (file)
@@ -314,8 +314,6 @@ extern int sparc_prologue_frameless_p (CORE_ADDR);
 
 /* Multi-arch the nPC and Y registers.  */
 #define Y_REGNUM              (sparc_y_regnum ())
-extern int sparc_npc_regnum (void);
-extern int sparc_y_regnum (void);
 
 #endif /* GDB_MULTI_ARCH */
 
index ba418b637db558bc7f1adf79082589a02d3ef7fc..261ed6061ccc6b3eb3dbc55b0919e7443e5a3f60 100644 (file)
@@ -1,6 +1,6 @@
 /* Native-dependent code for GNU/Linux SPARC.
 
-   Copyright 2001, 2002 Free Software Foundation, Inc.
+   Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +21,7 @@
 
 #include "defs.h"
 #include "regcache.h"
+#include "sparc-tdep.h"
    
 #include <sys/procfs.h>
 
index 33145e0150e912e373bf70f3aeb270e6d99de31b..540bbcc9e3bbf080606a00071a23ad3290264014 100644 (file)
@@ -26,6 +26,8 @@
 #include "gdbcore.h"
 #include "regcache.h"
 
+#include "sparc-tdep.h"
+
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
index cbb55fe9a33ff3a13c0f0bd1bb24ef848fff208d..24c7bebd326f9e175b68875de30da53b5d747462 100644 (file)
@@ -34,6 +34,8 @@
 #include "regcache.h"
 #include "osabi.h"
 
+#include "sparc-tdep.h"
+
 #ifdef USE_PROC_FS
 #include <sys/procfs.h>
 /* Prototypes for supply_gregset etc. */
index a991d0ef2a4d9753ca9c59e52e1bc750bf0e36fc..1e68d6961a97ca6ed8451ebee70b97ea18733634 100644 (file)
@@ -1,5 +1,5 @@
 /* Native-dependent code for UltraSPARC systems running NetBSD.
-   Copyright 2002 Free Software Foundation, Inc.
+   Copyright 2002, 2003 Free Software Foundation, Inc.
    Contributed by Wasabi Systems, Inc.
 
    This file is part of GDB.
@@ -23,6 +23,7 @@
 #include "inferior.h"
 #include "regcache.h"
 
+#include "sparc-tdep.h"
 #include "sparcnbsd-tdep.h"
 
 #include <sys/types.h>
index ce5d44dc6b4bd1b60a55da7342cc7f6d64d1fa42..f63d9e5ace040433e46b74fd2314822caae6b8bd 100644 (file)
@@ -1,5 +1,5 @@
 /* Native-dependent code for SPARC systems running NetBSD.
-   Copyright 2002 Free Software Foundation, Inc.
+   Copyright 2002, 2003 Free Software Foundation, Inc.
    Contributed by Wasabi Systems, Inc.
 
    This file is part of GDB.
@@ -23,6 +23,7 @@
 #include "inferior.h"
 #include "regcache.h"
 
+#include "sparc-tdep.h"
 #include "sparcnbsd-tdep.h"
 
 #include <sys/types.h>
index 4fe05aa9ce03a1ae3ea590fba344be52d15b9096..6cd0e3f3a855c6c486291fe96aec3cf69eceb631 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "gdb_string.h"
 
+#include "sparc-tdep.h"
 #include "sparcnbsd-tdep.h"
 #include "nbsd-tdep.h"