Create new file regcache.h. Update all uses.
authorAndrew Cagney <cagney@redhat.com>
Thu, 1 Mar 2001 01:39:22 +0000 (01:39 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 1 Mar 2001 01:39:22 +0000 (01:39 +0000)
153 files changed:
gdb/ChangeLog
gdb/a29k-tdep.c
gdb/a68v-nat.c
gdb/abug-rom.c
gdb/alpha-nat.c
gdb/alpha-tdep.c
gdb/alphabsd-nat.c
gdb/arc-tdep.c
gdb/arm-linux-nat.c
gdb/arm-linux-tdep.c
gdb/arm-tdep.c
gdb/blockframe.c
gdb/core-aout.c
gdb/core-sol2.c
gdb/corelow.c
gdb/cpu32bug-rom.c
gdb/cxux-nat.c
gdb/d10v-tdep.c
gdb/d30v-tdep.c
gdb/dbug-rom.c
gdb/dink32-rom.c
gdb/dve3900-rom.c
gdb/findvar.c
gdb/fr30-tdep.c
gdb/frame.c
gdb/gdbcore.h
gdb/go32-nat.c
gdb/h8300-tdep.c
gdb/h8500-tdep.c
gdb/hp300ux-nat.c
gdb/hppa-tdep.c
gdb/hppab-nat.c
gdb/hppah-nat.c
gdb/hppam3-nat.c
gdb/hpux-thread.c
gdb/i386-linux-nat.c
gdb/i386-linux-tdep.c
gdb/i386-tdep.c
gdb/i386aix-nat.c
gdb/i386b-nat.c
gdb/i386bsd-nat.c
gdb/i386gnu-nat.c
gdb/i386ly-tdep.c
gdb/i386m3-nat.c
gdb/i386mach-nat.c
gdb/i386nbsd-nat.c
gdb/i386v4-nat.c
gdb/i387-nat.c
gdb/i387-tdep.c
gdb/i960-tdep.c
gdb/ia64-aix-nat.c
gdb/ia64-linux-nat.c
gdb/ia64-tdep.c
gdb/inferior.h
gdb/infptrace.c
gdb/infrun.c
gdb/irix4-nat.c
gdb/irix5-nat.c
gdb/lin-lwp.c
gdb/lin-thread.c
gdb/lynx-nat.c
gdb/m3-nat.c
gdb/m32r-rom.c
gdb/m32r-tdep.c
gdb/m68hc11-tdep.c
gdb/m68k-tdep.c
gdb/m68klinux-nat.c
gdb/m68knbsd-nat.c
gdb/m68knbsd-tdep.c
gdb/m88k-nat.c
gdb/m88k-tdep.c
gdb/mac-nat.c
gdb/mcore-rom.c
gdb/mcore-tdep.c
gdb/mi/mi-main.c
gdb/mips-nat.c
gdb/mips-tdep.c
gdb/mipsm3-nat.c
gdb/mipsv4-nat.c
gdb/mn10200-tdep.c
gdb/mn10300-tdep.c
gdb/monitor.c
gdb/ns32km3-nat.c
gdb/ns32knbsd-nat.c
gdb/ocd.c
gdb/pa64solib.c
gdb/ppc-bdm.c
gdb/ppc-linux-nat.c
gdb/ppc-linux-tdep.c
gdb/ppcbug-rom.c
gdb/ppcnbsd-nat.c
gdb/ptx4-nat.c
gdb/regcache.c
gdb/regcache.h [new file with mode: 0644]
gdb/remote-adapt.c
gdb/remote-array.c
gdb/remote-bug.c
gdb/remote-e7000.c
gdb/remote-eb.c
gdb/remote-es.c
gdb/remote-est.c
gdb/remote-hms.c
gdb/remote-mips.c
gdb/remote-mm.c
gdb/remote-nindy.c
gdb/remote-os9k.c
gdb/remote-rdi.c
gdb/remote-rdp.c
gdb/remote-sds.c
gdb/remote-sim.c
gdb/remote-st.c
gdb/remote-udi.c
gdb/remote-utils.c
gdb/remote-vx.c
gdb/remote-vx29k.c
gdb/remote-vx68.c
gdb/remote-vx960.c
gdb/remote-vxmips.c
gdb/remote-vxsparc.c
gdb/remote.c
gdb/rom68k-rom.c
gdb/rs6000-nat.c
gdb/rs6000-tdep.c
gdb/sh-tdep.c
gdb/sh3-rom.c
gdb/sol-thread.c
gdb/solib-svr4.c
gdb/somsolib.c
gdb/sparc-nat.c
gdb/sparc-tdep.c
gdb/sparcl-tdep.c
gdb/sparclet-rom.c
gdb/sun3-nat.c
gdb/sun386-nat.c
gdb/symm-nat.c
gdb/target.c
gdb/thread-db.c
gdb/thread.c
gdb/tic80-tdep.c
gdb/tracepoint.c
gdb/ultra3-nat.c
gdb/umax-xdep.c
gdb/uw-thread.c
gdb/v850-tdep.c
gdb/v850ice.c
gdb/valops.c
gdb/value.h
gdb/w65-tdep.c
gdb/w89k-rom.c
gdb/win32-nat.c
gdb/wince.c
gdb/windows-nat.c
gdb/z8k-tdep.c

index ebe87246b30d7005580e7e4fcdaf6decda1f820b..9ba340054a6bd345d6ca6e5386895fe0738014ec 100644 (file)
@@ -1,3 +1,175 @@
+Tue Feb 27 23:56:23 2001  Andrew Cagney  <ac131313@redhat.com>
+
+       From Steven Johnson:
+       * regcache.h: New file.
+       
+       * value.h (read_register_bytes, read_register_gen)
+       (write_register_gen, write_register_bytes)
+       (read_register, read_register_pid)
+       (read_signed_register, read_signed_register_pid)
+       (write_register, write_register_pid)
+       (register_cached, set_register_cached)
+       (register_changed, register_buffer)
+       (registers_changed, supply_register): Move declaration from here.
+       * regcache.h: To here.
+       * gdbcore.h (registers_fetched): Ditto.
+       * inferior.h (registers, registers_valid): Ditto.
+
+       * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
+       generic_target_write_pc, write_pc_pid, write_pc,
+       generic_target_read_sp, read_sp, generic_target_write_sp,
+       write_sp, generic_target_read_fp, read_fp,
+       generic_target_write_fp, write_fp): Add note that these functions
+       will be moved from this file.
+       
+       * a29k-tdep.c: Include "regcache.h".
+       * a68v-nat.c: Ditto.
+       * abug-rom.c: Ditto.
+       * alpha-nat.c: Ditto.
+       * alpha-tdep.c: Ditto.
+       * alphabsd-nat.c: Ditto.
+       * arc-tdep.c: Ditto.
+       * arm-linux-nat.c: Ditto.
+       * arm-linux-tdep.c: Ditto.
+       * arm-tdep.c: Ditto.
+       * blockframe.c: Ditto.
+       * core-aout.c: Ditto.
+       * core-sol2.c: Ditto.
+       * corelow.c: Ditto.
+       * cpu32bug-rom.c: Ditto.
+       * cxux-nat.c: Ditto.
+       * d10v-tdep.c: Ditto.
+       * d30v-tdep.c: Ditto.
+       * dbug-rom.c: Ditto.
+       * dink32-rom.c: Ditto.
+       * dve3900-rom.c: Ditto.
+       * findvar.c: Ditto.
+       * fr30-tdep.c: Ditto.
+       * frame.c: Ditto.
+       * go32-nat.c: Ditto.
+       * h8300-tdep.c: Ditto.
+       * h8500-tdep.c: Ditto.
+       * hp300ux-nat.c: Ditto.
+       * hppa-tdep.c: Ditto.
+       * hppab-nat.c: Ditto.
+       * hppah-nat.c: Ditto.
+       * hppam3-nat.c: Ditto.
+       * hpux-thread.c: Ditto.
+       * i386-linux-nat.c: Ditto.
+       * i386-linux-tdep.c: Ditto.
+       * i386-tdep.c: Ditto.
+       * i386aix-nat.c: Ditto.
+       * i386b-nat.c: Ditto.
+       * i386bsd-nat.c: Ditto.
+       * i386gnu-nat.c: Ditto.
+       * i386ly-tdep.c: Ditto.
+       * i386m3-nat.c: Ditto.
+       * i386mach-nat.c: Ditto.
+       * i386nbsd-nat.c: Ditto.
+       * i386v4-nat.c: Ditto.
+       * i387-nat.c: Ditto.
+       * i387-tdep.c: Ditto.
+       * i960-tdep.c: Ditto.
+       * ia64-aix-nat.c: Ditto.
+       * ia64-linux-nat.c: Ditto.
+       * ia64-tdep.c: Ditto.
+       * infptrace.c: Ditto.
+       * infrun.c: Ditto.
+       * irix4-nat.c: Ditto.
+       * irix5-nat.c: Ditto.
+       * lin-lwp.c: Ditto.
+       * lin-thread.c: Ditto.
+       * lynx-nat.c: Ditto.
+       * m3-nat.c: Ditto.
+       * m32r-rom.c: Ditto.
+       * m32r-tdep.c: Ditto.
+       * m68hc11-tdep.c: Ditto.
+       * m68k-tdep.c: Ditto.
+       * m68klinux-nat.c: Ditto.
+       * m68knbsd-nat.c: Ditto.
+       * m68knbsd-tdep.c: Ditto.
+       * m88k-nat.c: Ditto.
+       * m88k-tdep.c: Ditto.
+       * mac-nat.c: Ditto.
+       * mcore-rom.c: Ditto.
+       * mcore-tdep.c: Ditto.
+       * mi/mi-main.c: Ditto.
+       * mips-nat.c: Ditto.
+       * mips-tdep.c: Ditto.
+       * mipsm3-nat.c: Ditto.
+       * mipsv4-nat.c: Ditto.
+       * mn10200-tdep.c: Ditto.
+       * mn10300-tdep.c: Ditto.
+       * monitor.c: Ditto.
+       * ns32km3-nat.c: Ditto.
+       * ns32knbsd-nat.c: Ditto.
+       * ocd.c: Ditto.
+       * pa64solib.c: Ditto.
+       * ppc-bdm.c: Ditto.
+       * ppc-linux-nat.c: Ditto.
+       * ppc-linux-tdep.c: Ditto.
+       * ppcbug-rom.c: Ditto.
+       * ppcnbsd-nat.c: Ditto.
+       * ptx4-nat.c: Ditto.
+       * regcache.c: Ditto.
+       * remote-adapt.c: Ditto.
+       * remote-array.c: Ditto.
+       * remote-bug.c: Ditto.
+       * remote-e7000.c: Ditto.
+       * remote-eb.c: Ditto.
+       * remote-es.c: Ditto.
+       * remote-est.c: Ditto.
+       * remote-hms.c: Ditto.
+       * remote-mips.c: Ditto.
+       * remote-mm.c: Ditto.
+       * remote-nindy.c: Ditto.
+       * remote-os9k.c: Ditto.
+       * remote-rdi.c: Ditto.
+       * remote-rdp.c: Ditto.
+       * remote-sds.c: Ditto.
+       * remote-sim.c: Ditto.
+       * remote-st.c: Ditto.
+       * remote-udi.c: Ditto.
+       * remote-utils.c: Ditto.
+       * remote-vx.c: Ditto.
+       * remote-vx29k.c: Ditto.
+       * remote-vx68.c: Ditto.
+       * remote-vx960.c: Ditto.
+       * remote-vxmips.c: Ditto.
+       * remote-vxsparc.c: Ditto.
+       * remote.c: Ditto.
+       * rom68k-rom.c: Ditto.
+       * rs6000-nat.c: Ditto.
+       * rs6000-tdep.c: Ditto.
+       * sh-tdep.c: Ditto.
+       * sh3-rom.c: Ditto.
+       * sol-thread.c: Ditto.
+       * solib-svr4.c: Ditto.
+       * somsolib.c: Ditto.
+       * sparc-nat.c: Ditto.
+       * sparc-tdep.c: Ditto.
+       * sparcl-tdep.c: Ditto.
+       * sparclet-rom.c: Ditto.
+       * sun3-nat.c: Ditto.
+       * sun386-nat.c: Ditto.
+       * symm-nat.c: Ditto.
+       * target.c: Ditto.
+       * thread-db.c: Ditto.
+       * thread.c: Ditto.
+       * tic80-tdep.c: Ditto.
+       * tracepoint.c: Ditto.
+       * ultra3-nat.c: Ditto.
+       * umax-xdep.c: Ditto.
+       * uw-thread.c: Ditto.
+       * v850-tdep.c: Ditto.
+       * v850ice.c: Ditto.
+       * valops.c: Ditto.
+       * w65-tdep.c: Ditto.
+       * w89k-rom.c: Ditto.
+       * win32-nat.c: Ditto.
+       * wince.c: Ditto.
+       * z8k-tdep.c: Ditto.
+
 2001-02-28  Matt Hiller  <hiller@redhat.com>   
        
        * MAINTAINERS: Add Matt Hiller to Write After Approval list.
index 1a2d929ee8bed6bb758cc07ac3170b346fed7134..3f26ff934696bb2a31aee8f70385bbcb347371d7 100644 (file)
@@ -27,6 +27,7 @@
 #include "symtab.h"
 #include "inferior.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 /* If all these bits in an instruction word are zero, it is a "tag word"
    which precedes a function entry point and gives stack traceback info.
index 7ad39a67629559ab912b2799c3f7717f184ec586..e7624154f937c18f0ceb2b4975861ea3274cedce 100644 (file)
@@ -1,5 +1,6 @@
 /* Host-dependent code for Apollo-68ks for GDB, the GNU debugger.
-   Copyright 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -20,6 +21,7 @@
 
 #include "defs.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #ifndef _ISP__M68K
 #define _ISP__M68K 1
index 68f48a2304f7621d78f3c2aa915ac6d2d9320971..75b6f60f1278a653d8421448ae25066d1a32aa10 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote debugging interface for ABug Rom monitor for GDB, the GNU debugger.
-   Copyright 1995, 1996, 1998 Free Software Foundation, Inc.
+   Copyright 1995, 1996, 1998, 2001 Free Software Foundation, Inc.
 
    Written by Rob Savoye of Cygnus Support
 
@@ -25,6 +25,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
 
 /* Prototypes for local functions. */
 
index eb12b0d9797b6316474fb4b4530caa45a7c62c65..adfa81af4e6f05f48f63f5bf2356fed6f28b796e 100644 (file)
@@ -1,5 +1,6 @@
 /* Low level Alpha interface, for GDB when running native.
-   Copyright 1993, 1995, 1996, 1998 Free Software Foundation, Inc.
+   Copyright 1993, 1995, 1996, 1998, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -22,6 +23,7 @@
 #include "inferior.h"
 #include "gdbcore.h"
 #include "target.h"
+#include "regcache.h"
 #include <sys/ptrace.h>
 #ifdef __linux__
 #include <asm/reg.h>
index 571c3d6257575f1925f27c24ec5c9512abcb8e84..894a4c21fe5dcaab5ca1cfcb1fad6b91c78b2071 100644 (file)
@@ -1,5 +1,6 @@
 /* Target-dependent code for the ALPHA architecture, for GDB, the GNU Debugger.
-   Copyright 1993, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
+   Copyright 1993, 94, 95, 96, 97, 1998, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -30,6 +31,7 @@
 #include "objfiles.h"
 #include "gdb_string.h"
 #include "linespec.h"
+#include "regcache.h"
 
 /* FIXME: Some of this code should perhaps be merged with mips-tdep.c.  */
 
index 43cdb7509087ead9631a69642a6e218e8c4b9d2f..e77b31b13aa276baa570fbaecc8e128452ba4f27 100644 (file)
@@ -1,5 +1,5 @@
 /* Native-dependent code for Alpha BSD's.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -20,6 +20,7 @@
 
 #include "defs.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #include <sys/types.h>
 #include <sys/ptrace.h>
index 701ee554122d39059afb3174742478e84b62f59e..29a542d6b250b7c779283e39b1e2143b816bc7c2 100644 (file)
@@ -26,6 +26,7 @@
 #include "floatformat.h"
 #include "symtab.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 /* Local functions */
 
index f0815bc29623be2ec9a30262c0e776595804db0f..5d1487e934efaaad136c4204113ac925847f58a3 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU/Linux on ARM native support.
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 #include "inferior.h"
 #include "gdbcore.h"
 #include "gdb_string.h"
+#include "regcache.h"
 
 #include <sys/user.h>
 #include <sys/ptrace.h>
index f50f7121f49ddcc7f2929f67993a5ae94afb0d30..293a8b720579b16c291b6de8d3b8dde84bcf57fc 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU/Linux on ARM target support.
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -25,6 +25,7 @@
 #include "floatformat.h"
 #include "gdbcore.h"
 #include "frame.h"
+#include "regcache.h"
 
 /* For arm_linux_skip_solib_resolver.  */
 #include "symtab.h"
index 3ca6dbebe21cfcd7e3d6cf2dd990d3c9a6f5167a..0a0ec414a3ed5eb0d578f64579151ba01c196007 100644 (file)
@@ -1,6 +1,6 @@
 /* Common target dependent code for GDB on ARM systems.
-   Copyright 1988, 1989, 1991, 1992, 1993, 1995, 1996, 1997, 1998, 1999, 2000
-   Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1993, 1995, 1996, 1997, 1998,
+   1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -29,6 +29,7 @@
 #include "coff/internal.h"     /* Internal format of COFF symbols in BFD */
 #include "dis-asm.h"           /* For register flavors. */
 #include <ctype.h>             /* for isupper () */
+#include "regcache.h"
 
 /* Each OS has a different mechanism for accessing the various
    registers stored in the sigcontext structure.
index eec0e109e82d8690be2825ea47de43bb7357f457..0b0dce1fda867f1a6e711995c11622a519de870e 100644 (file)
@@ -1,7 +1,7 @@
 /* Get info from stack frames;
    convert between frames, blocks, functions and pc values.
-   Copyright 1986, 87, 88, 89, 91, 94, 95, 96, 97, 1998
-   Free Software Foundation, Inc.
+   Copyright 1986, 87, 88, 89, 91, 94, 95, 96, 97, 1998, 2001 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -31,6 +31,7 @@
 #include "target.h"            /* for target_has_stack */
 #include "inferior.h"          /* for read_pc */
 #include "annotate.h"
+#include "regcache.h"
 
 /* Prototypes for exported functions. */
 
index 367090ff6d42bd9fb615ea12134a8f53b3a625c7..edd94e2fc8c3ca05962ff19cf80c3d5e563de840 100644 (file)
@@ -1,5 +1,5 @@
 /* Extract registers from a "standard" core file, for GDB.
-   Copyright (C) 1988-1998  Free Software Foundation, Inc.
+   Copyright 1988-1998, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -38,6 +38,7 @@
 #include "gdbcore.h"
 #include "value.h"             /* For supply_register.  */
 #include "inferior.h"          /* For ARCH_NUM_REGS. */
+#include "regcache.h"
 
 /* These are needed on various systems to expand REGISTER_U_ADDR.  */
 #ifndef USG
index 5a32c041b853873d570683d9927147c1c70f3019..e56e46a3b1be11f67add85c1a5e5d4ed19705240 100644 (file)
@@ -1,5 +1,5 @@
 /* Machine independent support for Solaris 2 core files for GDB.
-   Copyright 1994, 2000 Free Software Foundation, Inc.
+   Copyright 1994, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -42,6 +42,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include "gdb_string.h"
+#include "regcache.h"
 
 #include "inferior.h"
 #include "target.h"
index 05baf334cbdcbc27b120e6db267e7fb1b4eb64d5..5c5eba9d7559b77a8b0362e1d2aa43a576bf202c 100644 (file)
@@ -35,6 +35,7 @@
 #include "target.h"
 #include "gdbcore.h"
 #include "gdbthread.h"
+#include "regcache.h"
 
 #ifndef O_BINARY
 #define O_BINARY 0
index 6b77506a5a7648e00a0833e272578f390682e352..25a3046368244a8a33cf011df53acfeba9d40a18 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote debugging interface for CPU32Bug Rom monitor for GDB, the GNU debugger.
-   Copyright 1995 Free Software Foundation, Inc.
+   Copyright 1995, 2001 Free Software Foundation, Inc.
 
    Written by Stu Grossman of Cygnus Support
 
@@ -25,6 +25,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
 
 static void cpu32bug_open (char *args, int from_tty);
 
index 74b201049ad59bb6804a7b009d7ae8048df4e4ef..f1fa07597092735bad5274de58a0b1090f227e05 100644 (file)
@@ -1,5 +1,6 @@
 /* Native support for Motorola 88k running Harris CX/UX.
-   Copyright 1988, 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+   Copyright 1988, 1990, 1991, 1992, 1993, 1994, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -33,6 +34,7 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "symtab.h"
+#include "regcache.h"
 
 #ifndef USER                   /* added to support BCS ptrace_user */
 #define USER ptrace_user
index f0d749a292ff32b3fe9e6c89f82e66fa09b7de54..6b3ae87be46f94418fc4c927972274841402ff7e 100644 (file)
@@ -35,6 +35,7 @@
 #include "objfiles.h"
 #include "language.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 #include "floatformat.h"
 #include "sim-d10v.h"
index a94a4d9e91e09e7a52dab398c0848fdda8d6436b..84ed9580ec4c7bd417ed87d6c0a954c09a79a183 100644 (file)
@@ -33,6 +33,7 @@
 #include "dis-asm.h"
 #include "symfile.h"
 #include "objfiles.h"
+#include "regcache.h"
 
 #include "language.h" /* For local_hex_string() */
 
index dff1a3be3afd831f531cebe6f118c0546a763182..6a660ebcd0fd9395b609f7846b5d2efbf1d734f5 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote debugging interface to dBUG ROM monitor for GDB, the GNU debugger.
-   Copyright 1996, 1999 Free Software Foundation, Inc.
+   Copyright 1996, 1999, 2001 Free Software Foundation, Inc.
 
    Written by Stan Shebs of Cygnus Support.
 
@@ -30,6 +30,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
 
 static void dbug_open (char *args, int from_tty);
 
index 2ad9c6153dc5c5c4f5dfaaa23ce9f42ac0940a73..cb2caaa2c3fa8b7ff56ee3d368c194164f2771e1 100644 (file)
@@ -1,6 +1,6 @@
 /* Remote debugging interface for DINK32 (PowerPC) ROM monitor for
    GDB, the GNU debugger.
-   Copyright 1997 Free Software Foundation, Inc.
+   Copyright 1997, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -26,6 +26,7 @@
 #include "serial.h"
 #include "symfile.h" /* For generic_load() */
 #include "inferior.h" /* For write_pc() */
+#include "regcache.h"
 
 static void dink32_open (char *args, int from_tty);
 
index 5c6755a3bb0f29d6774baa62d0ebf2e602d09776..974306130c5117469e081dadf894aa80005cdab4 100644 (file)
@@ -1,6 +1,6 @@
 /* Remote debugging interface for Densan DVE-R3900 ROM monitor for
    GDB, the GNU debugger.
-   Copyright 1997 Free Software Foundation, Inc.
+   Copyright 1997, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +28,7 @@
 #include "command.h"
 #include "gdb_string.h"
 #include <time.h>
+#include "regcache.h"
 
 /* Type of function passed to bfd_map_over_sections.  */
 
index 88ca3158879e47f241f4eadbe2a0e0448225205c..969097fdefd7c83d3d3b32f3e06dcbfcc7e69fd2 100644 (file)
@@ -30,6 +30,7 @@
 #include "gdb_string.h"
 #include "floatformat.h"
 #include "symfile.h"           /* for overlay functions */
+#include "regcache.h"
 
 /* This is used to indicate that we don't know the format of the floating point
    number.  Typically, this is useful for native ports, where the actual format
index c06542adf968743232094f1c55b34d3c77157a3f..5198bf3197a768b6745da73854d07cc1198addd0 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for the Fujitsu FR30.
-   Copyright 1999, Free Software Foundation, Inc.
+   Copyright 1999, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +28,7 @@
 #include "gdb_string.h"
 #include "gdbcore.h"
 #include "symfile.h"
+#include "regcache.h"
 
 /* An expression that tells us whether the function invocation represented
    by FI does not have a frame on the stack associated with it.  */
index e29729171c98c11c0e140cb8fefdccc00571d8d2..f68bc54356371a26001b81ae14446c8bc1cea524 100644 (file)
@@ -24,6 +24,7 @@
 #include "target.h"
 #include "value.h"
 #include "inferior.h"  /* for inferior_pid */
+#include "regcache.h"
 
 /* FIND_SAVED_REGISTER ()
 
index c3db1da0828c6048f347b76ce6fd81a2985b7af0..e57f5140e4d0293a4755318c52ea18409f6ee136 100644 (file)
@@ -108,8 +108,6 @@ extern void validate_files (void);
 
 extern CORE_ADDR register_addr (int regno, CORE_ADDR blockend);
 
-extern void registers_fetched (void);
-
 #if !defined (KERNEL_U_ADDR)
 extern CORE_ADDR kernel_u_addr;
 #define KERNEL_U_ADDR kernel_u_addr
index 582ff1626ffa3085cc64d064e4d94860aeecc3e4..461c783918f0fd7ba524d1e7a7d5c766d52036b7 100644 (file)
@@ -29,6 +29,7 @@
 #include "floatformat.h"
 #include "buildsym.h"
 #include "i387-nat.h"
+#include "regcache.h"
 
 #include <stdio.h>             /* required for __DJGPP_MINOR__ */
 #include <stdlib.h>
index 84e190b14a92e072a1ad1eb9b748fa173b89cd05..909459824d98e56553aaf81dbf5c974921617f26 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-machine dependent code for Hitachi H8/300, for GDB.
-   Copyright (C) 1988, 1990, 1991 Free Software Foundation, Inc.
+   Copyright 1988, 1990, 1991, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -33,6 +33,7 @@
 #include "gdbcore.h"
 #include "gdb_string.h"
 #include "value.h"
+#include "regcache.h"
 
 extern int h8300hmode, h8300smode;
 
index 2f20c157aa6a0f8ae5f8c17d23689c0754095c86..38b5db0c8c2aaa570a92c006193131a6190bd356 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for Hitachi H8/500, for GDB.
-   Copyright 1993, 1994, 1995 Free Software Foundation, Inc.
+   Copyright 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -32,6 +32,7 @@
 #include "value.h"
 #include "dis-asm.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #define UNSIGNED_SHORT(X) ((X) & 0xffff)
 
index ca0a802d42e28079080279ea42b26f3b28ab7654..0f64e4df2dfd9cb46e3272b841be9a40ab0dcb4b 100644 (file)
@@ -1,5 +1,6 @@
 /* HP/UX native interface for HP 300's, for GDB when running under Unix.
-   Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "frame.h"
 #include "inferior.h"
+#include "regcache.h"
 
 /* Defining this means some system include files define some extra stuff.  */
 #define WOPR
index 551fd8ed645215df8858560df772e38533d86939..a320f33ca306d12dc6cfaa7027faacf39111f538 100644 (file)
@@ -1,5 +1,6 @@
 /* Target-dependent code for the HP PA architecture, for GDB.
-   Copyright 1986, 1987, 1989-1996, 1999-2000 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989-1996, 1999-2000, 2001 Free Software
+   Foundation, Inc.
 
    Contributed by the Center for Software Science at the
    University of Utah (pa-gdb-bugs@cs.utah.edu).
@@ -26,6 +27,7 @@
 #include "bfd.h"
 #include "inferior.h"
 #include "value.h"
+#include "regcache.h"
 
 /* For argument passing to the inferior */
 #include "symtab.h"
index 17a4dc763a340f7be21a73908d66380ba2058a63..d2666172edb8eff11453a6212ed79cce552e9dd6 100644 (file)
@@ -1,7 +1,8 @@
 /* Machine-dependent hooks for the unix child process stratum.  This
    code is for the HP PA-RISC cpu.
 
-   Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 2001 Free
+   Software Foundation, Inc.
 
    Contributed by the Center for Software Science at the
    University of Utah (pa-gdb-bugs@cs.utah.edu).
@@ -26,6 +27,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "target.h"
+#include "regcache.h"
 #include <sys/ptrace.h>
 
 /* Use an extra level of indirection for ptrace calls.
index 840813d6c27944a9e72ba00b15297dd5e14b43d7..aa50588071be09e2346762c0d2b2bc27b5ba2b3e 100644 (file)
@@ -30,6 +30,7 @@
 #include <sys/ptrace.h>
 #include "gdbcore.h"
 #include "gdb_wait.h"
+#include "regcache.h"
 #include <signal.h>
 
 extern CORE_ADDR text_end;
index a3d4e5b007029b5b67bc78a6825ea30fcab02e98..07239b7d7eeda7c3d290a38290eb71355b538298 100644 (file)
@@ -1,5 +1,5 @@
 /* Low level interface to HP800 running mach 4.0.
-   Copyright (C) 1995 Free Software Foundation, Inc.
+   Copyright 1995, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +21,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 #include <stdio.h>
 
index 4df446eb6091b4264bd2c99af00857d79fd78c74..90ce323ee49b72353a62d5229f85523d1941994b 100644 (file)
@@ -1,5 +1,5 @@
 /* Low level interface for debugging HPUX/DCE threads for GDB, the GNU debugger.
-   Copyright 1996, 1999 Free Software Foundation, Inc.
+   Copyright 1996, 1999, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -39,6 +39,7 @@
 #include "gdbthread.h"
 #include "target.h"
 #include "inferior.h"
+#include "regcache.h"
 #include <fcntl.h>
 #include <sys/stat.h>
 #include "gdbcore.h"
index c92d96c08e0303ff3d454658682f7c77de861958..47e78708a240eafce8b8630cac30184288366df6 100644 (file)
@@ -21,6 +21,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/ptrace.h>
 #include <sys/user.h>
index e7fbc38196b8ee3958697a3a51d4ec2ce620f9e0..ee6ad8f7cf5c8d104ea417ae0347762ad9dd887c 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for Linux running on i386's, for GDB.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 #include "gdbcore.h"
 #include "frame.h"
 #include "value.h"
+#include "regcache.h"
 
 /* For i386_linux_skip_solib_resolver.  */
 #include "symtab.h"
index fd95baa9338931df59537c58adb5a8586f93dc5c..d2f4b22712c8fd8c79bc5ad46b886946efde9fc5 100644 (file)
@@ -30,6 +30,7 @@
 #include "gdbcmd.h"
 #include "command.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 static long i386_get_frame_setup (CORE_ADDR);
 
index c32f151a2ba4b3e9e0d07201f0f66c73ab58d926..0d646decef60e8fe554b5c851998b27191d70578 100644 (file)
@@ -1,5 +1,6 @@
 /* Intel 386 native support.
-   Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -23,6 +24,7 @@
 #include "inferior.h"
 #include "language.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #ifdef USG
 #include <sys/types.h>
index 12a27a9085cbfff05a7e8f22bd319a2a4e4ac844..8a4f2f3edf4bfc305d1d132baa8e22043327df97 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for BSD Unix running on i386's, for GDB.
-   Copyright 1988, 1989, 1991, 1992, 1994, 1996 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -27,6 +28,7 @@
 #include <machine/frame.h>
 #include "inferior.h"
 #include "gdbcore.h" /* for registers_fetched() */
+#include "regcache.h"
 
 void
 fetch_inferior_registers (int regno)
index a866a9b5ce9f545d299bfa787811e8f5a2c7dc15..e991ba0fa716935fc26d66ba16992741c979b9fe 100644 (file)
@@ -1,5 +1,5 @@
 /* Native-dependent code for modern i386 BSD's.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -20,6 +20,7 @@
 
 #include "defs.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #include <sys/types.h>
 #include <sys/ptrace.h>
index fca14e47114dbc94bac655a0d576f7ea4cd6ae1b..8dfc3fdd29b66fea8c73a307570bbacb89043ee5 100644 (file)
@@ -1,5 +1,6 @@
 /* Low level interface to i386 running the GNU Hurd.
-   Copyright (C) 1992, 1995, 1996, 2000 Free Software Foundation, Inc.
+   Copyright 1992, 1995, 1996, 2000, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 #include "gdb_assert.h"
 #include <stdio.h>
index 0122479a19b143b988dbaff783e558b197eb87d4..e0c028770ee4d1d23fd0d7539bc20f645a63c6b8 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for Intel 386 running LynxOS.
-   Copyright 1993 Free Software Foundation, Inc.
+   Copyright 1993, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 #include "inferior.h"
 #include "target.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 /* Return the PC of the caller from the call frame.  Assumes the subr prologue
    has already been executed, and the frame pointer setup.  If this is the
index 5f3d130693ec3c7f5207b2e2ad4b10a7a8e8b6d1..fff34baeeb0909a406b741319592def5f08c31ea 100644 (file)
@@ -1,5 +1,5 @@
 /* Low level interface to I386 running mach 3.0.
-   Copyright (C) 1992 Free Software Foundation, Inc.
+   Copyright 1992, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +21,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 #include <stdio.h>
 
index 1759b0fb215dc77ce36dd12999b10a0b9012fd8c..ef513d79a3c6eda9e0b21b4283aded3f3c07c776 100644 (file)
@@ -1,5 +1,6 @@
 /* Native dependent code for Mach 386's for GDB, the GNU debugger.
-   Copyright (C) 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +23,7 @@
 #include "frame.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/param.h>
 #include <sys/dir.h>
index 0c069d12e60d1f1f32e5a19b8cb3d8eda8fe11ab..d7444114e8b8891c09970e1c2da8362368374b84 100644 (file)
@@ -1,6 +1,6 @@
 /* Native-dependent code for NetBSD/i386, for GDB.
-   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2000
-   Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2000, 2001 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -26,6 +26,7 @@
 #include <machine/frame.h>
 #include "inferior.h"
 #include "gdbcore.h" /* for registers_fetched() */
+#include "regcache.h"
 
 #define RF(dst, src) \
        memcpy(&registers[REGISTER_BYTE(dst)], &src, sizeof(src))
index 97506476c7344b780278ee2bfccd317a5b262b1d..ee0fb5178d631329078eb4c9cecef42f15203813 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for SVR4 Unix running on i386's, for GDB.
-   Copyright 1988, 1989, 1991, 1992, 1996, 1998 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1996, 1998, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "value.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #ifdef HAVE_SYS_REG_H
 #include <sys/reg.h>
index 49357c4709666bc237d279028800ed529304fe5a..f22b4078c2104cadd6611b44de50c705124f8611 100644 (file)
@@ -21,6 +21,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "value.h"
+#include "regcache.h"
 
 #include "i387-nat.h"
 
index 88b65a44814e37f041423bd4463c74739145ea68..ea3e48ddc45f189b4dc07d31189c7f0df9b31e2b 100644 (file)
@@ -1,5 +1,6 @@
 /* Intel 387 floating point stuff.
-   Copyright (C) 1988, 89, 91, 98, 99, 2000 Free Software Foundation, Inc.
+   Copyright 1988, 89, 91, 98, 99, 2000, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -25,6 +26,7 @@
 #include "value.h"
 #include "gdbcore.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 
 /* FIXME: Eliminate the next two functions when we have the time to
index 27fc2062b7eac403db782dcd3a5717eada606e50..35e47f1a6261f6ef439cf5500b3ed915f37c1a11 100644 (file)
@@ -1,5 +1,6 @@
 /* Target-machine dependent code for the Intel 960
-   Copyright 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+   Copyright 1991, 1992, 1993, 1994, 1995, 2001 Free Software
+   Foundation, Inc.
    Contributed by Intel Corporation.
    examine_prologue and other parts contributed by Wind River Systems.
 
@@ -28,6 +29,7 @@
 #include "target.h"
 #include "gdbcore.h"
 #include "inferior.h"
+#include "regcache.h"
 
 static CORE_ADDR next_insn (CORE_ADDR memaddr,
                            unsigned int *pword1, unsigned int *pword2);
index 3d747882c760d93a2e7107a432cfe7430610d1d6..c41cc7cc88c68fd81474c351c146a462a84dd401 100644 (file)
@@ -22,6 +22,7 @@
 #include "inferior.h"
 #include "target.h"
 #include "gdbcore.h"
+#include "regcache.h"
 #include <sys/procfs.h>
 
 #include "symtab.h"
index bd07c3b96b1bd710a1a413b301459c40dbeec534..50217f125826f9c26d66b66bb61b90cab55aa650 100644 (file)
@@ -1,5 +1,5 @@
 /* Functions specific to running gdb native on IA-64 running Linux.
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 #include "inferior.h"
 #include "target.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <signal.h>
 #include <sys/ptrace.h>
index eb7472749fe9295866e4ac4dff298cdbe6fbb0a0..5efd58a92a54b6afa9daf051b39c3dea38fe8989 100644 (file)
@@ -25,6 +25,7 @@
 #include "gdbcore.h"
 #include "arch-utils.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 #include "objfiles.h"
 #include "elf/common.h"                /* for DT_PLTGOT value */
index 69464b5e53e5acb438421ce52041a872a9578d05..7ec1e87b3ec544b75892bb55abc6e62d21ca5247 100644 (file)
@@ -111,16 +111,6 @@ extern int inferior_ignoring_leading_exec_events;
 
 extern struct environ *inferior_environ;
 
-/* Character array containing an image of the inferior programs'
-   registers. */
-
-extern char *registers;
-
-/* Character array containing the current state of each register
-   (unavailable<0, valid=0, invalid>0). */
-
-extern signed char *register_valid;
-
 extern void clear_proceed_status (void);
 
 extern void proceed (CORE_ADDR, enum target_signal, int);
index e4637ee28f11a39f4700f93930259fc4854911fa..0770d57262582df62d1fed14d9eb56b7492d8a93 100644 (file)
@@ -24,6 +24,7 @@
 #include "inferior.h"
 #include "target.h"
 #include "gdb_string.h"
+#include "regcache.h"
 
 #include "gdb_wait.h"
 
index 5266c88ca32b4bae823a28ca04a9c4866c19d0e5..e200d6d4c8eba2ad00f3e4f84073450ff6b4f869 100644 (file)
@@ -35,6 +35,7 @@
 #include "top.h"
 #include <signal.h>
 #include "inf-loop.h"
+#include "regcache.h"
 
 /* Prototypes for local functions */
 
index 506d57bcd6618dea25d83e32c1201db45bf91465..dc244759569d626f0d69792270660d83befadc36 100644 (file)
@@ -1,6 +1,6 @@
 /* Native support for the SGI Iris running IRIX version 4, for GDB.
-   Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1995
-   Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1995, 2001 Free
+   Software Foundation, Inc.
    Contributed by Alessandro Forin(af@cs.cmu.edu) at CMU
    and by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin.
    Implemented for Irix 4.x by Garrett A. Wollman.
@@ -25,6 +25,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/time.h>
 #include <sys/procfs.h>
index 5fe41fa004be61e1573c0fb10728cbd0b20301d7..88933928c7c100464a18162cefd0769dfbf67f6e 100644 (file)
@@ -1,6 +1,6 @@
 /* Native support for the SGI Iris running IRIX version 5, for GDB.
-   Copyright 1988, 89, 90, 91, 92, 93, 94, 95, 96, 98, 1999
-   Free Software Foundation, Inc.
+   Copyright 1988, 89, 90, 91, 92, 93, 94, 95, 96, 98, 1999, 2001 Free
+   Software Foundation, Inc.
    Contributed by Alessandro Forin(af@cs.cmu.edu) at CMU
    and by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin.
    Implemented for Irix 4.x by Garrett A. Wollman.
@@ -27,6 +27,7 @@
 #include "inferior.h"
 #include "gdbcore.h"
 #include "target.h"
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <sys/time.h>
index 94af2e82684e66223eef98d0c58da824f11f7826..c2a654ea52104747b59cb2027786d724e0df1ea3 100644 (file)
@@ -1,5 +1,5 @@
 /* Multi-threaded debugging support for Linux (LWP layer).
-   Copyright 2000 Free Software Foundation, Inc.
+   Copyright 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -29,6 +29,7 @@
 #include "gdbthread.h"
 #include "inferior.h"
 #include "target.h"
+#include "regcache.h"
 
 #define DEBUG 1
 
index b3fd14ca961047e3128aab245d599e5a9697c409..6a88b8968c32e0aee1c78c945a6442b5cf9f32b5 100644 (file)
@@ -1,6 +1,6 @@
 /* Multi-threaded debugging support for the thread_db interface,
    used on operating systems such as Solaris and Linux.
-   Copyright 1999 Free Software Foundation, Inc.
+   Copyright 1999, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 #include "target.h"
 #include "inferior.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 #include "gdb_wait.h"
 
index 38bd6d3ddfb4047cad7d6120306b71bd1b64ff9b..3e376c32424a801d5bfe72e85cf6cebf5048ef57 100644 (file)
@@ -1,5 +1,5 @@
 /* Native-dependent code for LynxOS.
-   Copyright 1993, 1994 Free Software Foundation, Inc.
+   Copyright 1993, 1994, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -23,6 +23,7 @@
 #include "inferior.h"
 #include "target.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/ptrace.h>
 #include <sys/wait.h>
index cb3cccf301fe81c2fc3562e98b139a423e301fc9..33de4f6bbcb96e9d887b0ce93d9156df517dcc8b 100644 (file)
@@ -57,6 +57,7 @@
 #include "gdb_wait.h"
 #include "gdbcmd.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #if 0
 #include <servers/machid_lib.h>
index 2dfac770ea2bd4c7fe08320991a5da9ab8a8a206..65a61ad22270b00394a609f98144896bd412b139 100644 (file)
@@ -37,6 +37,7 @@
 #include "objfiles.h"          /* for ALL_OBJFILES etc. */
 #include "inferior.h"          /* for write_pc() */
 #include <ctype.h>
+#include "regcache.h"
 
 extern void report_transfer_performance (unsigned long, time_t, time_t);
 
index e8684033c88b3b7b57b6fde75e156817ca3f66d7..5165fd2dcf04edaa4fa1485781460ff52dde7b7c 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for the Mitsubishi m32r for GDB, the GNU debugger.
-   Copyright 1996, Free Software Foundation, Inc.
+   Copyright 1996, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +28,7 @@
 #include "gdb_string.h"
 #include "gdbcore.h"
 #include "symfile.h"
+#include "regcache.h"
 
 /* Function: m32r_use_struct_convention
    Return nonzero if call_function should allocate stack space for a
index 64f781084547c56af1ee6cbf7c0f899916078d6e..a636b34c0e8268dd4b568b95b875629b38738183 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for Motorola 68HC11 & 68HC12
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
    Contributed by Stephane Carrez, stcarrez@worldnet.fr
 
 This file is part of GDB.
@@ -33,6 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "symfile.h"
 #include "objfiles.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 #include "target.h"
 #include "opcode/m68hc11.h"
index c66615bea233218c55191375bd6cfde045f561f0..d4b717621e16820c6da8efc9b9fa9e9819339960 100644 (file)
@@ -26,6 +26,7 @@
 #include "value.h"
 #include "gdb_string.h"
 #include "inferior.h"
+#include "regcache.h"
 \f
 
 #define P_LINKL_FP     0x480e
index b78b8a5acb3e536a02f9b012c879a256ec1bab72..b7adda55c9dbf962c802b677daf30b15c97edc46 100644 (file)
@@ -1,5 +1,5 @@
 /* Motorola m68k native support for Linux
-   Copyright (C) 1996,1998 Free Software Foundation, Inc.
+   Copyright 1996, 1998, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -23,6 +23,7 @@
 #include "inferior.h"
 #include "language.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #ifdef USG
 #include <sys/types.h>
index 6279f65ef2777153f63d89c32180e2d5553608cc..0595c2c5e3329b17886cf839722a8c46aadc2720 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for Motorola m68k's running NetBSD, for GDB.
-   Copyright 1988, 1989, 1991, 1992, 1994, 1996 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -25,6 +26,7 @@
 #include <machine/frame.h>
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 void
 fetch_inferior_registers (int regno)
index 0b49cac58ee213cb302c87c96055dfd28c996d82..520d14fa47fb12ef3ba7b08d8ae5a83bbd115c7d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "defs.h"
 #include "gdbtypes.h"
+#include "regcache.h"
 
 int
 m68knbsd_use_struct_convention (int gcc_p, struct type *type)
index 0ce30e71b1af3684666d64ec6b672c6b084820b3..164f12dadbd26d0f3ceaf205b5434e9a9a654973 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent Motorola 88xxx support for GDB, the GNU Debugger.
-   Copyright 1988, 1990, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1988, 1990, 1991, 1992, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "frame.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #include <sys/types.h>
 #include <sys/param.h>
index afe1ca2d7e188673f8ea598fba89ae6d4dcd1fab..1148bc875e196aa5cf84f69ba0d3769eb4cf406d 100644 (file)
@@ -1,5 +1,6 @@
 /* Target-machine dependent code for Motorola 88000 series, for GDB.
-   Copyright 1988, 1990, 1991, 1994, 1995 Free Software Foundation, Inc.
+   Copyright 1988, 1990, 1991, 1994, 1995, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -26,6 +27,7 @@
 #include "symtab.h"
 #include "setjmp.h"
 #include "value.h"
+#include "regcache.h"
 
 /* Size of an instruction */
 #define        BYTES_PER_88K_INSN      4
index 864fcabaf20f4c7a0165d97f3979afb973b81833..12fdb2994472e29500fb04e2e1f2949bedefbc1b 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-vector operations for controlling Mac applications, for GDB.
-   Copyright (C) 1995 Free Software Foundation, Inc.
+   Copyright 1995, 2001 Free Software Foundation, Inc.
    Written by Stan Shebs.  Contributed by Cygnus Support.
 
    This file is part of GDB.
@@ -36,6 +36,7 @@
 #include "gdb_string.h"
 #include "gdbthread.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 #include <Processes.h>
 
index 7470cb8dc15f67f6278cdbe083248930c4f3bb7a..1be7842df9da91290999959469b8c767215822c7 100644 (file)
@@ -1,6 +1,6 @@
 /* Remote debugging interface to Motorola picobug monitor for gdb,
    the GNU debugger.
-   Copyright 1999 Free Software Foundation, Inc.
+   Copyright 1999, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -24,6 +24,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "gdb_string.h"
+#include "regcache.h"
 
 /* Functions used only in this file. */
 
index c99a2de34f75b6d3b7f4bff03b52c6001eef5f77..d7678e3d6634a0a31e8999becfac4a3347135f58 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-machine dependent code for Motorola MCore for GDB, the GNU debugger
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright 1999, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 #include "symtab.h"
 #include "value.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 /* Functions declared and used only in this file */
 
index 1472039ba3f5d451c1743021e5b0a97673269034..5851d7102893a65b5482d594bf7b5620ad9e53bf 100644 (file)
@@ -1,5 +1,5 @@
 /* MI Command Set.
-   Copyright (C) 2000, Free Software Foundation, Inc.
+   Copyright 2000, 2001 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions (a Red Hat company).
 
    This file is part of GDB.
@@ -37,6 +37,7 @@
 #include "event-top.h"
 #include "gdbcore.h"           /* for write_memory() */
 #include "value.h"             /* for write_register_bytes() */
+#include "regcache.h"
 #include <ctype.h>
 #include <sys/time.h>
 
index cf8a31a837c2fa7bdaeb7a0854db7de1ec77ac5f..895db11793b8b19bf18704de1f244cbe800e6d42 100644 (file)
@@ -1,5 +1,6 @@
 /* Low level DECstation interface to ptrace, for GDB when running native.
-   Copyright 1988, 1989, 1991, 1992, 1995 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1995, 2001 Free Software
+   Foundation, Inc.
    Contributed by Alessandro Forin(af@cs.cmu.edu) at CMU
    and by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin.
 
@@ -23,6 +24,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 #include <sys/ptrace.h>
 #include <sys/types.h>
 #include <sys/param.h>
index 569d076956017b84064ac0d5c363141f6f0e8c3b..034a71ff67f624083aba63f91d00b449c0817f2d 100644 (file)
@@ -37,6 +37,7 @@
 #include "gdbtypes.h"
 #include "target.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 #include "opcode/mips.h"
 #include "elf/mips.h"
index ba43b8d9097ecb729d8965761cf38ad39800335d..b1abf1530d01512aa8e56d2ed9aebaef5d284270 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions to make GDB run on a mips box under Mach 3.0
-   Copyright (C) 1992 Free Software Foundation, Inc.
+   Copyright (C) 1992, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -26,6 +26,7 @@
 
 #include "defs.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #include <stdio.h>
 
index cca4006570511936150d7474321b60c717cada00..702835555f906f7d2249aa581a8412f26fa8c850 100644 (file)
@@ -1,5 +1,5 @@
 /* Native support for MIPS running SVR4, for GDB.
-   Copyright 1994, 1995 Free Software Foundation, Inc.
+   Copyright 1994, 1995, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 #include "inferior.h"
 #include "gdbcore.h"
 #include "target.h"
+#include "regcache.h"
 
 #include <sys/time.h>
 #include <sys/procfs.h>
index 59cf2380469cc944f338abdc16a9eaff8eaf9a4f..d58c8e5fe30055f7aeb9cf4f3eaa28f1afc5ebb4 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for the Matsushita MN10200 for GDB, the GNU debugger.
-   Copyright 1997 Free Software Foundation, Inc.
+   Copyright 1997, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +28,7 @@
 #include "gdb_string.h"
 #include "gdbcore.h"
 #include "symfile.h"
+#include "regcache.h"
 
 
 /* Should call_function allocate stack space for a struct return?  */
index 0e03810d51dc92cfede9d2cb8e864c603b8c22be..444df210dc4fef79d1137a41a5eff57372782998 100644 (file)
@@ -29,6 +29,7 @@
 #include "gdb_string.h"
 #include "gdbcore.h"
 #include "symfile.h"
+#include "regcache.h"
 
 extern void _initialize_mn10300_tdep (void);
 static CORE_ADDR mn10300_analyze_prologue (struct frame_info *fi,
index 7e3580e1b11e819a9bd50f7120b6337200085946..d2b02464e19442f0d0ddafd651360f13d3833f8f 100644 (file)
@@ -51,6 +51,7 @@
 #include "inferior.h"
 #include "gdb_regex.h"
 #include "srec.h"
+#include "regcache.h"
 
 static char *dev_name;
 static struct target_ops *targ_ops;
index 23d3a826fbc6874d3e4f6ea301216b2c88d0bbe5..89b988e65c3458a3b6406685ea317c9ab3de39f8 100644 (file)
@@ -1,5 +1,5 @@
 /* Low level interface to ns532 running mach 3.0.
-   Copyright (C) 1992 Free Software Foundation, Inc.
+   Copyright 1992, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -20,6 +20,7 @@
 
 #include "defs.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #include <stdio.h>
 
index 460f78e9d0d5f0a5e11f25eea4e3c34069eb53b3..e1efdacbcd1d929ce7e1cdf124638affa5a2a5d7 100644 (file)
@@ -1,5 +1,6 @@
 /* Functions specific to running gdb native on an ns32k running NetBSD
-   Copyright 1989, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
+   Copyright 1989, 1992, 1993, 1994, 1996, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +29,7 @@
 #include "inferior.h"
 #include "target.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #define RF(dst, src) \
        memcpy(&registers[REGISTER_BYTE(dst)], &src, sizeof(src))
index 240bd672f204a2be795a0d2af77ed6be9278c584..42f2bba62ff93f0caf2aa894b0ab9c2e3e9e5091 100644 (file)
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -34,6 +34,7 @@
 #include <signal.h>
 #include "serial.h"
 #include "ocd.h"
+#include "regcache.h"
 
 /* Prototypes for local functions */
 
index 45a575b727f6d27b72f764ed5dee0b4348514dd6..f71d1b1c2473672050af7318098ce35b4d96bf2d 100644 (file)
@@ -1,5 +1,5 @@
 /* Handle HP ELF shared libraries for GDB, the GNU Debugger.
-   Copyright 1999 Free Software Foundation, Inc.
+   Copyright 1999, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -49,6 +49,7 @@
 #include "gdbcmd.h"
 #include "assert.h"
 #include "language.h"
+#include "regcache.h"
 
 #include <fcntl.h>
 
index 0be1cfa717c128c8c36a9f6356a08c0f1c1fe9de..d38b420a726bd065d717c27cf49318786b776f7e 100644 (file)
@@ -35,6 +35,7 @@
 #include "serial.h"
 #include "ocd.h"
 #include "ppc-tdep.h"
+#include "regcache.h"
 
 static void bdm_ppc_open (char *name, int from_tty);
 
index d562eca6f605e23d55bbfe2433f03d6d71f6b79b..66e6e831a77001783cbed6f31318723f4716297f 100644 (file)
@@ -1,5 +1,6 @@
 /* PPC linux native support.
-   Copyright (C) 1988, 1989, 1991, 1992, 1994, 1996 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "frame.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/types.h>
 #include <sys/param.h>
index 624d1d7368cef6f2c8a5cdd3e0025911a559d167..feef7c89bcb56e3776908def59acc327dc938824 100644 (file)
@@ -1,6 +1,7 @@
 /* Target-dependent code for GDB, the GNU debugger.
-   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
-   Free Software Foundation, Inc.
+
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996,
+   1997, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +29,7 @@
 #include "gdbcmd.h"
 #include "symfile.h"
 #include "objfiles.h"
+#include "regcache.h"
 
 #include "ppc-tdep.h"
 
index 16a7f9dd2b2284b8daf629245937b037add8967a..edeacb8b09b7d56d52aa0a1362eaf7a5a3c56c7e 100644 (file)
@@ -1,6 +1,6 @@
 /* Remote debugging interface for PPCbug (PowerPC) Rom monitor
    for GDB, the GNU debugger.
-   Copyright 1995 Free Software Foundation, Inc.
+   Copyright 1995, 2001 Free Software Foundation, Inc.
 
    Written by Stu Grossman of Cygnus Support
 
@@ -26,6 +26,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
 
 static void
 ppcbug_supply_register (char *regname, int regnamelen, char *val, int vallen)
index 044115b24f03759b9110d0c1e172fc0ed262f53f..49550bba64a8bd2c72c5a35cdad468fb727f35f5 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for PowerPC's running NetBSD, for GDB.
-   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2000 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1994, 1996, 2000, 2001 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -27,6 +28,7 @@
 #include "inferior.h"
 #include "gdbcore.h"
 #include "ppc-tdep.h"
+#include "regcache.h"
 
 #define RF(dst, src) \
         memcpy(&registers[REGISTER_BYTE(dst)], &src, sizeof(src))
index af313c06134831145c68a4e19e9be5bebbd2ca5a..66ed8a732b75277e7d06bf1a72c13474f5f58349 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for ptx 4.0
-   Copyright 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 #include <sys/procfs.h>
 #include <sys/ptrace.h>
 #include <sys/param.h>
index 953892c73f853757f90caa9ed02a31098c84c26a..49ce169ca24fa9c555fb7a0abeaeb327ef00b94a 100644 (file)
@@ -25,6 +25,7 @@
 #include "target.h"
 #include "gdbarch.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 /*
  * DATA STRUCTURE
@@ -554,6 +555,14 @@ supply_register (int regnum, char *val)
 /* read_pc, write_pc, read_sp, write_sp, read_fp, write_fp, etc.
    Special handling for registers PC, SP, and FP.  */
 
+/* NOTE: cagney/2001-02-18: The functions generic_target_read_pc(),
+   read_pc_pid(), read_pc(), generic_target_write_pc(),
+   write_pc_pid(), write_pc(), generic_target_read_sp(), read_sp(),
+   generic_target_write_sp(), write_sp(), generic_target_read_fp(),
+   read_fp(), generic_target_write_fp(), write_fp will eventually be
+   moved out of the reg-cache into either frame.[hc] or to the
+   multi-arch framework.  The are not part of the raw register cache.  */
+
 /* This routine is getting awfully cluttered with #if's.  It's probably
    time to turn this into READ_PC and define it in the tm.h file.
    Ditto for write_pc.
diff --git a/gdb/regcache.h b/gdb/regcache.h
new file mode 100644 (file)
index 0000000..682156a
--- /dev/null
@@ -0,0 +1,71 @@
+/* Cache and manage the values of registers for GDB, the GNU debugger.
+   Copyright 1986, 87, 89, 91, 94, 95, 96, 1998, 2000, 2001
+   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 REGCACHE_H
+#define REGCACHE_H
+
+/* Character array containing an image of the inferior programs'
+   registers. */
+
+extern char *registers;
+
+/* Character array containing the current state of each register
+   (unavailable<0, valid=0, invalid>0). */
+
+extern signed char *register_valid;
+
+extern int register_cached (int regnum);
+
+extern void set_register_cached (int regnum, int state);
+
+extern void register_changed (int regnum);
+
+extern char *register_buffer (int regnum);
+
+extern void registers_changed (void);
+
+extern void registers_fetched (void);
+
+extern void read_register_bytes (int regbyte, char *myaddr, int len);
+
+extern void read_register_gen (int regnum, char *myaddr);
+
+extern void write_register_gen (int regnum, char *myaddr);
+
+extern void write_register_bytes (int regbyte, char *myaddr, int len);
+
+/* Rename to read_unsigned_register()? */
+extern ULONGEST read_register (int regnum);
+
+/* Rename to read_unsigned_register_pid()? */
+extern ULONGEST read_register_pid (int regnum, int pid);
+
+extern LONGEST read_signed_register (int regnum);
+
+extern LONGEST read_signed_register_pid (int regnum, int pid);
+
+extern void write_register (int regnum, LONGEST val);
+
+extern void write_register_pid (int regnum, CORE_ADDR val, int pid);
+
+extern void supply_register (int regnum, char *val);
+
+#endif /* REGCACHE_H */
index 9ca6167ce023065b28b4d31999aa0e25fb4f9a3b..9c69a07ab458223f9838f0910a2c696b2457d44c 100644 (file)
@@ -43,6 +43,7 @@
 #include "terminal.h"
 #include "target.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 /* This processor is getting rusty but I am trying to keep it
    up to date at least with data structure changes.
index 7cb63765474419e493207bbfa2e4bfdfc61a9e2c..6ffd30fe5006ad495f9a8a358e90c6f1d6cb39f9 100644 (file)
@@ -37,6 +37,7 @@
 #include "remote-utils.h"
 #include "inferior.h"
 #include "version.h"
+#include "regcache.h"
 
 extern int baud_rate;
 
index e381ae915cc9552dcb51bd522c65168eb9ea27d7..8d0f80265d2536d04d4cc962c4a7d1de5eb0a04c 100644 (file)
@@ -24,6 +24,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "gdb_string.h"
+#include "regcache.h"
 #include <ctype.h>
 #include <fcntl.h>
 #include <setjmp.h>
index 904ce1f4e54c19428c3fe195ee7c629ecf1669e3..323ee0db976d9d4853b263e3d99ad3892172784c 100644 (file)
@@ -45,6 +45,7 @@
 #include "serial.h"
 #include "remote-utils.h"
 #include "symfile.h"
+#include "regcache.h"
 #include <time.h>
 #include <ctype.h>
 
index 7246c909ee48bbe4da2b10815f37347e3f74c176..bcbc230d25b1b86905ec74b8875b8b946dbae607 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "defs.h"
 #include "gdb_string.h"
+#include "regcache.h"
 
 #include "inferior.h"
 #include "bfd.h"
index 764af505ee1b91b5a1c69c19fd46dbeef5d14282..74fbfb193320031aa65136d2da934a38cda1a245 100644 (file)
 #include "remote-utils.h"
 #include "gdbcore.h"
 #include "serial.h"
+#include "regcache.h"
 
 /* Prototypes for local functions */
 
index 23d554121333eeb62ef9608e130c1a8c1d1126e0..4a6274f6af96ba1a127ffa668db4396aeb95286c 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote debugging interface for EST-300 ICE, for GDB
-   Copyright 1995 Free Software Foundation, Inc.
+   Copyright 1995, 2001 Free Software Foundation, Inc.
    Contributed by Cygnus Support.
 
    Written by Steve Chamberlain for Cygnus Support.
@@ -27,6 +27,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
 
 static void est_open (char *args, int from_tty);
 
index 834f5963dc0f5cd03f097e7c8023f31014cb4f6c..0b402faf63cd0ca5bd6074eaa40ac9029ad9d14b 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote debugging interface for Hitachi HMS Monitor Version 1.0
-   Copyright 1995,1999 Free Software Foundation, Inc.
+   Copyright 1995, 1999, 2001 Free Software Foundation, Inc.
    Contributed by Cygnus Support.  Written by Steve Chamberlain
    (sac@cygnus.com).
 
@@ -25,6 +25,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
 
 static void hms_open (char *args, int from_tty);
 static void
index 1dd0fcfb39e6ab5388a50d8ddedd8d412168b76b..b4d7ad0d65897f92e06b547861db1c63f52a93d1 100644 (file)
@@ -30,6 +30,7 @@
 #include "target.h"
 #include "remote-utils.h"
 #include "gdb_string.h"
+#include "regcache.h"
 
 #include <sys/types.h>
 #include <sys/stat.h>
index f4680317cdb7f09a17ca7c3fbb831d594ba38eb6..938f0e8c048b77e7cb6495bf9d14685543323e5b 100644 (file)
@@ -41,6 +41,7 @@
 #include "terminal.h"
 #include "minimon.h"
 #include "target.h"
+#include "regcache.h"
 
 /* Offset of member MEMBER in a struct of type TYPE.  */
 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
index 7902e0bcdf2b2888944229157a01d21f7937e188..32fd69560e7da83117f5808301e274f2edaea7e8 100644 (file)
 #include "gdbcore.h"
 #include "command.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 #include <sys/file.h>
 #include <ctype.h>
index 16b905695601f8e3a7d9b9b458e13b5536f71e3e..e9d62103d5178404f47bbd7d3862ccd6d2a04486 100644 (file)
@@ -50,6 +50,7 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "gdb-stabs.h"
+#include "regcache.h"
 
 struct cmd_list_element *showlist;
 extern struct target_ops rombug_ops;   /* Forward declaration */
index d97cb65c2c916e5ef6246ebae4ce611e1b0f29b1..4d208e57316fb9816861e0ef37cb60308ba8e552 100644 (file)
@@ -33,6 +33,7 @@
 #include "gdbcore.h"
 #include "breakpoint.h"
 #include "completer.h"
+#include "regcache.h"
 
 #ifdef USG
 #include <sys/types.h>
index 470a82b0276276ae9d109773c1d8d3adaf35da27..db8f6f76541b38472e52abb1c07ecb3a47e77b1a 100644 (file)
@@ -47,6 +47,7 @@
 #include "remote-utils.h"
 #include "gdb_string.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #ifdef HAVE_TIME_H
 #include <time.h>
index f7c364a21d0634a47b74b1731412e854a06a290b..08f16e7863e79cd3e0a4bfacaea83bbe7aa343d7 100644 (file)
@@ -36,6 +36,7 @@
 #include "gdb-stabs.h"
 #include "gdbthread.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #ifdef USG
 #include <sys/types.h>
index 81baf52b834ad4406239ca03100494c102d50de3..cd746b96b7b80f2ba0b6192f753156e54a575db1 100644 (file)
@@ -36,6 +36,7 @@
 #include "remote-sim.h"
 #include "remote-utils.h"
 #include "command.h"
+#include "regcache.h"
 
 /* Prototypes */
 
index d688770ffb9f7d870050461fd1f9c5c6af0cd5e8..049eaec644271445b568deea882573e9a778a43f 100644 (file)
@@ -41,6 +41,7 @@
 #include "gdb_string.h"
 #include <sys/types.h>
 #include "serial.h"
+#include "regcache.h"
 
 extern struct target_ops st2000_ops;   /* Forward declaration */
 
index a741ef76a86b781ff82564d4a7c094e01d19ae73..14a7345715fedda00dc72310941005eb258dc44e 100644 (file)
@@ -46,6 +46,7 @@
 #include "gdbcmd.h"
 #include "bfd.h"
 #include "gdbcore.h"           /* For download function */
+#include "regcache.h"
 
 /* access the register store directly, without going through
    the normal handler functions. This avoids an extra data copy.  */
index e723a5612e1f117c72fc3f02750d6f3dd2b9c816..9efa90095b1aae867edeee2c876068faea499c2a 100644 (file)
@@ -1,6 +1,6 @@
 /* Generic support for remote debugging interfaces.
 
-   Copyright 1993, 1994, 1998 Free Software Foundation, Inc.
+   Copyright 1993, 1994, 1998, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -50,6 +50,7 @@
 #include "gdbcore.h"           /* for exec_bfd */
 #include "inferior.h"          /* for generic_mourn_inferior */
 #include "remote-utils.h"
+#include "regcache.h"
 
 
 void _initialize_sr_support (void);
index f49fa7217db2a7c0097f2384ef02f7029b0f0177..49bd19fd8865ef508a73c852c609a1727d420c64 100644 (file)
@@ -32,6 +32,7 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "gdb-stabs.h"
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <errno.h>
index 1d5230c689b07eb98bc9dd63342e572a9f9e2a0a..798cd08839683819baf97659d7492405d5c2e58b 100644 (file)
@@ -30,6 +30,7 @@
 #include "command.h"
 #include "symtab.h"
 #include "symfile.h"           /* for struct complaint */
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <errno.h>
index 8dd97f2a1651b1a6ca0f5ed826e3d843620d954e..2ebaa633f770db92ee786856a851f86375a83a35 100644 (file)
@@ -31,6 +31,7 @@
 #include "command.h"
 #include "symtab.h"
 #include "symfile.h"           /* for struct complaint */
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <errno.h>
index 4a2af5c55f2cf4fcaed6b1eb59e29d5eaa7e03b7..08568bc4ca67d2e1c842160e50d84b417d28ec63 100644 (file)
@@ -31,6 +31,7 @@
 #include "command.h"
 #include "symtab.h"
 #include "symfile.h"           /* for struct complaint */
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <errno.h>
index a06edaf0bceb35b44fec43cc6e57b611ce1523ce..8be4a2f9464c6780c1380cfb5cce286119ee9abc 100644 (file)
@@ -31,6 +31,7 @@
 #include "command.h"
 #include "symtab.h"
 #include "symfile.h"           /* for struct complaint */
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <errno.h>
index b9a1a250a0be7e5ba4273dd7b55e3fc5863e0016..014f1d457efdc3f63b09d0e32ce02371f94cc093 100644 (file)
@@ -31,6 +31,7 @@
 #include "command.h"
 #include "symtab.h"
 #include "symfile.h"           /* for struct complaint */
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <errno.h>
index c80fa092294b5d544313a7042571478eece1b650..5e8db0edafde46adb95be1cde775939e8912f262 100644 (file)
@@ -35,6 +35,7 @@
 #include "gdb-stabs.h"
 #include "gdbthread.h"
 #include "remote.h"
+#include "regcache.h"
 
 #include <ctype.h>
 #include <sys/time.h>
index 5bb3a183c234f6ba9f72f1bb0c8f14f1befd2d93..e6b8b50b4c566d563d908e0ac7d6d8a08a147100 100644 (file)
@@ -1,5 +1,6 @@
 /* Remote target glue for the ROM68K ROM monitor.
-   Copyright 1988, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+   Copyright 1988, 1991, 1992, 1993, 1994, 1995, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -23,6 +24,7 @@
 #include "target.h"
 #include "monitor.h"
 #include "serial.h"
+#include "regcache.h"
 
 static void rom68k_open (char *args, int from_tty);
 
index 185413503429d342f65e9de4e64bbe9b9375f76c..dc6676d4141a0d8485bc90b19cd20d39b85c8f25 100644 (file)
@@ -30,6 +30,7 @@
 #include "libbfd.h"            /* For bfd_cache_lookup (FIXME) */
 #include "bfd.h"
 #include "gdb-stabs.h"
+#include "regcache.h"
 
 #include <sys/ptrace.h>
 #include <sys/reg.h>
index 94d09a62c00ef501cbe8018d264f7d67db122f0a..c209e9e50d0350f6806a72e026ec93db0bb5f724 100644 (file)
@@ -30,6 +30,7 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 #include "bfd/libbfd.h"                /* for bfd_default_set_arch_mach */
 #include "coff/internal.h"     /* for libcoff.h */
index 032bfe92c15f1c111213db3cb163a3facf7feec4..f24a2bff95bd1ebde173c905d1191d88b6fc6475 100644 (file)
@@ -38,6 +38,7 @@
 #include "gdb_string.h"
 #include "arch-utils.h"
 #include "floatformat.h"
+#include "regcache.h"
 
 #include "solib-svr4.h"
 
index a470488c242de31bd678cafd6240b335aa0fed3f..989e0fb78ac11053c2b5b890adfdf282e2db1402 100644 (file)
@@ -25,6 +25,7 @@
 #include "serial.h"
 #include "srec.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 static serial_t parallel;
 static int parallel_in_use;
index f266902f78eb3bdf27afe68f2aff956136419f19..eea3bfaac2d47738f21deafa0f0893854f327980 100644 (file)
@@ -1,5 +1,6 @@
 /* Low level interface for debugging Solaris threads for GDB, the GNU debugger.
-   Copyright 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+   Copyright 1996, 1997, 1998, 2000, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -58,6 +59,7 @@
 #include <dlfcn.h>
 #include "gdbcmd.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 extern struct target_ops sol_thread_ops;       /* Forward declaration */
 extern struct target_ops sol_core_ops; /* Forward declaration */
index 1c451f39f422f566e4e02d5d39a101f5d3494a89..8ef307f3f7b04f0c6930abc749bce74b46d3c29f 100644 (file)
@@ -21,6 +21,7 @@
 
 #define _SYSCALL32     /* for Sparc64 cross Sparc32 */
 #include "defs.h"
+#include "regcache.h"
 
 
 #include <sys/types.h>
index 8bb3e79e950943b673e0a5c6c71926bbc6716d89..2887fbbac057320f51437bb74fa60ff6aecaecf3 100644 (file)
@@ -39,6 +39,7 @@
 #include "gdbcmd.h"
 #include "assert.h"
 #include "language.h"
+#include "regcache.h"
 
 #include <fcntl.h>
 
index 143b3688258213b9b669b74a4e54999d8480abfa..ed47b8e42b74d2f6480934e81dca6ffe5184567a 100644 (file)
@@ -1,5 +1,6 @@
 /* Functions specific to running gdb native on a SPARC running SunOS4.
-   Copyright 1989, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
+   Copyright 1989, 1992, 1993, 1994, 1996, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +23,8 @@
 #include "inferior.h"
 #include "target.h"
 #include "gdbcore.h"
+#include "sparc-nat.c"
+#include "regcache.h"
 
 #include <signal.h>
 #include <sys/ptrace.h>
index e30ebb54cdc0d45c5d1de0a13a086f79c3103196..4b1cfdc8a6500f8b05863ec2cd4d657ea5d8ffbf 100644 (file)
@@ -30,6 +30,7 @@
 #include "value.h"
 #include "bfd.h"
 #include "gdb_string.h"
+#include "regcache.h"
 
 #ifdef USE_PROC_FS
 #include <sys/procfs.h>
index 59f710cc883c0e38e1f401ae1d04c95b54168c34..635eafe479484453bce8b57d6482b0ccbfd04f39 100644 (file)
@@ -23,6 +23,7 @@
 #include "breakpoint.h"
 #include "target.h"
 #include "serial.h"
+#include "regcache.h"
 #include <sys/types.h>
 
 #if (!defined(__GO32__) && !defined(_WIN32)) || defined(__CYGWIN32__)
index 921c6a53f089f7b6c2d6fbabaaa06c0b2de1ef43..5dcdd3c98f505cbc12adc74b623200a5b8ea451c 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote target glue for the SPARC Sparclet ROM monitor.
-   Copyright 1995, 1996 Free Software Foundation, Inc.
+   Copyright 1995, 1996, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -27,6 +27,7 @@
 #include "srec.h"
 #include "symtab.h"
 #include "symfile.h"           /* for generic_load */
+#include "regcache.h"
 #include <time.h>
 
 extern void report_transfer_performance (unsigned long, time_t, time_t);
index 8e27e64d60d960b3d499e173744eee0ff5491051..8891e79949a07b7dc34bb9dba125295739f6eaae 100644 (file)
@@ -1,5 +1,6 @@
 /* Host-dependent code for Sun-3 for GDB, the GNU debugger.
-   Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 2001 Free Software
+   Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/ptrace.h>
 #define KERNEL                 /* To get floating point reg definitions */
index 326084e26bab4abb427235eb3201581c96b21aee..939d3af02cdbe70cad76f6830ef334eb22190172 100644 (file)
@@ -1,5 +1,6 @@
 /* Native support for Sun 386i's for GDB, the GNU debugger.
-   Copyright (C) 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 2001 Free Software
+   Foundation, Inc.
    Changes for sun386i by Jean Daniel Fekete (jdf@litp.univ-p6-7.fr),
    C2V Paris, April 89.
 
@@ -24,6 +25,7 @@
 #include "frame.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include <sys/param.h>
 #include <sys/dir.h>
index 144c111a9cf3ec430f69db9d79c79cef5a9a3f05..67541db9368f71fc31e6b03e2d6244cbec51ff47 100644 (file)
@@ -27,6 +27,7 @@
 #include "inferior.h"
 #include "symtab.h"
 #include "target.h"
+#include "regcache.h"
 
 /* FIXME: What is the _INKERNEL define for?  */
 #define _INKERNEL
index ba4ddc2fce05e24b80486d51d2edc7af11f64105..ec4162bc2d0beac8f8bdadc06bd7a8413fb113fa 100644 (file)
@@ -33,6 +33,7 @@
 #include "gdb_wait.h"
 #include "dcache.h"
 #include <signal.h>
+#include "regcache.h"
 
 extern int errno;
 
index f425bf489e5167e1b6424bc025f569fffafefd84..70283d07963335d11990ce6bc744c06fef99bb86 100644 (file)
@@ -1,5 +1,5 @@
 /* libthread_db assisted debugging support, generic parts.
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -31,6 +31,7 @@
 #include "symfile.h"
 #include "objfiles.h"
 #include "target.h"
+#include "regcache.h"
 
 #ifndef LIBTHREAD_DB_SO
 #define LIBTHREAD_DB_SO "libthread_db.so.1"
index eeeca4955309ee0fc3e4b5244ef30cb69914e861..4282a4889aad0f37144e30a1a37e0db797797fb7 100644 (file)
@@ -31,6 +31,7 @@
 #include "gdbthread.h"
 #include "command.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 #include <ctype.h>
 #include <sys/types.h>
index 2ea2d44e7b4cadb5b429653b2c91970de4ab0237..f168624460498b842a25acbf81ed3d6eb5a531d9 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for the TI TMS320C80 (MVP) for GDB, the GNU debugger.
-   Copyright 1996, Free Software Foundation, Inc.
+   Copyright 1996, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -28,6 +28,7 @@
 #include "gdb_string.h"
 #include "gdbcore.h"
 #include "symfile.h"
+#include "regcache.h"
 
 /* Function: frame_find_saved_regs
    Return the frame_saved_regs structure for the frame.
index a1feb18fc2eb9f1fa6c355ed490a9fb2d476d759..b8598e717de11b780159729696533e1240adebfc 100644 (file)
@@ -1,5 +1,5 @@
 /* Tracing functionality for remote targets in custom GDB protocol
-   Copyright 1997, 1998 Free Software Foundation, Inc.
+   Copyright 1997, 1998, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -33,6 +33,7 @@
 #include "remote.h"
 #include "linespec.h"
 #include "completer.h"
+#include "regcache.h"
 
 #include "ax.h"
 #include "ax-gdb.h"
index 02ff8ec3ff37579464eee0445a58c484a82628d9..f8d8f33e04c65bbf93aa031cb50fa74e42e65049 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for GDB, for NYU Ultra3 running Sym1 OS.
-   Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 2001 Free Software Foundation,
+   Inc.
    Contributed by David Wood (wood@nyu.edu) at New York University.
 
    This file is part of GDB.
@@ -25,6 +26,7 @@
 #include "inferior.h"
 #include "symtab.h"
 #include "value.h"
+#include "regcache.h"
 
 #include <sys/types.h>
 #include <sys/param.h>
index 84431fe47a52238ac80849752eed3654fba375e9..f7c5bd38faf804d7aae3e8530a8cbe5083df3b64 100644 (file)
@@ -1,5 +1,6 @@
 /* umax host stuff.
-   Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 2001 Free Software Foundation,
+   Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "frame.h"
 #include "inferior.h"
+#include "regcache.h"
 
 #include <sys/param.h>
 #include <sys/dir.h>
index 17e98fd3d627a9d535f6530be4ab7544fd77b234..a3b98a4780f9217f446ec9bf254b4bf5e474c11c 100644 (file)
@@ -1,7 +1,7 @@
 /* Low level interface for debugging UnixWare user-mode threads for
    GDB, the GNU debugger.
 
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
    Written by Nick Duffek <nsd@cygnus.com>.
 
    This file is part of GDB.
 #include "gdbthread.h"
 #include "target.h"
 #include "inferior.h"
+#include "regcache.h"
 #include <fcntl.h>
 
 /* <thread.h> includes <sys/priocntl.h>, which requires boolean_t from
index 6e107404ddc0ff85c1ab42e5dc484c537b0376ee..4ada8b0316d12dc8f6d72fed578ed5026d136c2d 100644 (file)
@@ -29,6 +29,7 @@
 #include "gdbcore.h"
 #include "symfile.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 
 static char *v850_generic_reg_names[] = REGISTER_NAMES;
index 897313894c6b159bd568f53c4e86a333fc05d1a5..8f65de3d5584e913e01b69cd45729656468ca39b 100644 (file)
@@ -1,5 +1,5 @@
 /* ICE interface for the NEC V850 for GDB, the GNU debugger.
-   Copyright 1996, 2000 Free Software Foundation, Inc.
+   Copyright 1996, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -30,6 +30,7 @@
 #include "gdbcore.h"
 #include "value.h"
 #include "command.h"
+#include "regcache.h"
 
 #include <tcl.h>
 #include <windows.h>
index ce15c2007eba7c76c8ad82b4a00611da45bad164..c093d5396acd3c9f18766be46efe499711aa6301 100644 (file)
@@ -1,6 +1,6 @@
 /* Perform non-arithmetic operations on values, for GDB.
-   Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 1998
-   Free Software Foundation, Inc.
+   Copyright 1986, 87, 89, 91, 92, 93, 94, 95, 96, 97, 1998, 2001 Free
+   Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -30,6 +30,7 @@
 #include "demangle.h"
 #include "language.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 #include <errno.h>
 #include "gdb_string.h"
index c586e82e990ba099a9d9d89c0511e717b42e173e..d83e0c8bcdc4abc492c56af0030c1c3197fcfb54 100644 (file)
@@ -465,40 +465,6 @@ extern void release_value (value_ptr val);
 
 extern int record_latest_value (value_ptr val);
 
-extern void registers_changed (void);
-
-extern void read_register_bytes (int regbyte, char *myaddr, int len);
-
-extern void write_register_bytes (int regbyte, char *myaddr, int len);
-
-extern void read_register_gen (int regnum, char *myaddr);
-
-extern void write_register_gen (int regnum, char *myaddr);
-
-/* Rename to read_unsigned_register()? */
-extern ULONGEST read_register (int regnum);
-
-extern LONGEST read_signed_register (int regnum);
-
-/* Rename to read_unsigned_register_pid()? */
-extern ULONGEST read_register_pid (int regnum, int pid);
-
-extern LONGEST read_signed_register_pid (int regnum, int pid);
-
-extern void write_register (int regnum, LONGEST val);
-
-extern void write_register_pid (int regnum, CORE_ADDR val, int pid);
-
-extern void supply_register (int regnum, char *val);
-
-extern int register_cached (int regnum);
-
-extern void set_register_cached (int regnum, int state);
-
-extern void register_changed (int regnum);
-
-extern char *register_buffer (int regnum);
-
 extern void
 modify_field (char *addr, LONGEST fieldval, int bitpos, int bitsize);
 
index 3f76cf5de66c46fac4b4d86e8a403f4d8e52e138..bf7146740a80df13fbfc170a68ba08e1fb0f22ec 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-machine dependent code for WDC-65816, for GDB.
-   Copyright (C) 1995 Free Software Foundation, Inc.
+   Copyright 1995, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -31,6 +31,7 @@
 #include "gdbtypes.h"
 #include "dis-asm.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 /* Return the saved PC from this frame. */
 
index e33a3c5ff1f6653377ee963cef3e4ef71df3df49..0829815ba90777d387ae85f8540ca02b336c8242 100644 (file)
@@ -1,7 +1,7 @@
 /* Remote target glue for the WinBond ROM monitor running on the "Cougar"
    W89k eval board.
 
-   Copyright 1995 Free Software Foundation, Inc.
+   Copyright 1995, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -26,6 +26,7 @@
 #include "monitor.h"
 #include "serial.h"
 #include "xmodem.h"
+#include "regcache.h"
 
 
 static void w89k_open (char *args, int from_tty);
index 71e10e952bf40924530d84bf454129da064bc2c2..67d1728ba8905095fc5d58a50c338845fef59aea 100644 (file)
@@ -1,5 +1,6 @@
 /* Target-vector operations for controlling win32 child processes, for GDB.
-   Copyright 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software
+   Foundation, Inc.
    Contributed by Cygnus Solutions, A Red Hat Company.
 
    This file is part of GDB.
@@ -17,8 +18,7 @@
    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.
- */
+   Boston, MA 02111-1307, USA.  */
 
 /* by Steve Chamberlain, sac@cygnus.com */
 
@@ -31,6 +31,7 @@
 #include "gdbcore.h"
 #include "command.h"
 #include "completer.h"
+#include "regcache.h"
 #include <signal.h>
 #include <sys/types.h>
 #include <fcntl.h>
index bcbe212dab76a9b6dee9b42bea78cfe365b152a2..3b4f67cb3eed011437b0e4790726c60c830a00e4 100644 (file)
@@ -55,6 +55,7 @@
 #include <sys/param.h>
 #include "wince-stub.h"
 #include <time.h>
+#include "regcache.h"
 
 /* The ui's event loop. */
 extern int (*ui_loop_hook) (int signo);
index 71e10e952bf40924530d84bf454129da064bc2c2..67d1728ba8905095fc5d58a50c338845fef59aea 100644 (file)
@@ -1,5 +1,6 @@
 /* Target-vector operations for controlling win32 child processes, for GDB.
-   Copyright 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software
+   Foundation, Inc.
    Contributed by Cygnus Solutions, A Red Hat Company.
 
    This file is part of GDB.
@@ -17,8 +18,7 @@
    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.
- */
+   Boston, MA 02111-1307, USA.  */
 
 /* by Steve Chamberlain, sac@cygnus.com */
 
@@ -31,6 +31,7 @@
 #include "gdbcore.h"
 #include "command.h"
 #include "completer.h"
+#include "regcache.h"
 #include <signal.h>
 #include <sys/types.h>
 #include <fcntl.h>
index 98eb22f92e4e9927b5c23b2c5ca35f6dcdd89b65..4b6d8e25c44d09b1eaac99be88dffb1e8a167245 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-machine dependent code for Zilog Z8000, for GDB.
-   Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1992, 1993, 1994, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -31,6 +31,7 @@
 #include "gdbtypes.h"
 #include "dis-asm.h"
 #include "gdbcore.h"
+#include "regcache.h"
 
 #include "value.h" /* For read_register() */
 
This page took 0.104156 seconds and 4 git commands to generate.