+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.
#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.
/* 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.
#include "defs.h"
#include "inferior.h"
+#include "regcache.h"
#ifndef _ISP__M68K
#define _ISP__M68K 1
/* 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
#include "target.h"
#include "monitor.h"
#include "serial.h"
+#include "regcache.h"
/* Prototypes for local functions. */
/* 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.
#include "inferior.h"
#include "gdbcore.h"
#include "target.h"
+#include "regcache.h"
#include <sys/ptrace.h>
#ifdef __linux__
#include <asm/reg.h>
/* 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.
#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. */
/* 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.
#include "defs.h"
#include "inferior.h"
+#include "regcache.h"
#include <sys/types.h>
#include <sys/ptrace.h>
#include "floatformat.h"
#include "symtab.h"
#include "gdbcmd.h"
+#include "regcache.h"
/* Local functions */
/* 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.
#include "inferior.h"
#include "gdbcore.h"
#include "gdb_string.h"
+#include "regcache.h"
#include <sys/user.h>
#include <sys/ptrace.h>
/* 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.
#include "floatformat.h"
#include "gdbcore.h"
#include "frame.h"
+#include "regcache.h"
/* For arm_linux_skip_solib_resolver. */
#include "symtab.h"
/* 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.
#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.
/* 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.
#include "target.h" /* for target_has_stack */
#include "inferior.h" /* for read_pc */
#include "annotate.h"
+#include "regcache.h"
/* Prototypes for exported functions. */
/* 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.
#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
/* 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.
#include <fcntl.h>
#include <errno.h>
#include "gdb_string.h"
+#include "regcache.h"
#include "inferior.h"
#include "target.h"
#include "target.h"
#include "gdbcore.h"
#include "gdbthread.h"
+#include "regcache.h"
#ifndef O_BINARY
#define O_BINARY 0
/* 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
#include "target.h"
#include "monitor.h"
#include "serial.h"
+#include "regcache.h"
static void cpu32bug_open (char *args, int from_tty);
/* 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.
#include "symfile.h"
#include "objfiles.h"
#include "symtab.h"
+#include "regcache.h"
#ifndef USER /* added to support BCS ptrace_user */
#define USER ptrace_user
#include "objfiles.h"
#include "language.h"
#include "arch-utils.h"
+#include "regcache.h"
#include "floatformat.h"
#include "sim-d10v.h"
#include "dis-asm.h"
#include "symfile.h"
#include "objfiles.h"
+#include "regcache.h"
#include "language.h" /* For local_hex_string() */
/* 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.
#include "target.h"
#include "monitor.h"
#include "serial.h"
+#include "regcache.h"
static void dbug_open (char *args, int from_tty);
/* 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.
#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);
/* 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.
#include "command.h"
#include "gdb_string.h"
#include <time.h>
+#include "regcache.h"
/* Type of function passed to bfd_map_over_sections. */
#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
/* 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.
#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. */
#include "target.h"
#include "value.h"
#include "inferior.h" /* for inferior_pid */
+#include "regcache.h"
/* FIND_SAVED_REGISTER ()
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
#include "floatformat.h"
#include "buildsym.h"
#include "i387-nat.h"
+#include "regcache.h"
#include <stdio.h> /* required for __DJGPP_MINOR__ */
#include <stdlib.h>
/* 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.
#include "gdbcore.h"
#include "gdb_string.h"
#include "value.h"
+#include "regcache.h"
extern int h8300hmode, h8300smode;
/* 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.
#include "value.h"
#include "dis-asm.h"
#include "gdbcore.h"
+#include "regcache.h"
#define UNSIGNED_SHORT(X) ((X) & 0xffff)
/* 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.
#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
/* 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).
#include "bfd.h"
#include "inferior.h"
#include "value.h"
+#include "regcache.h"
/* For argument passing to the inferior */
#include "symtab.h"
/* 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).
#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.
#include <sys/ptrace.h>
#include "gdbcore.h"
#include "gdb_wait.h"
+#include "regcache.h"
#include <signal.h>
extern CORE_ADDR text_end;
/* 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.
#include "defs.h"
#include "inferior.h"
#include "floatformat.h"
+#include "regcache.h"
#include <stdio.h>
/* 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.
#include "gdbthread.h"
#include "target.h"
#include "inferior.h"
+#include "regcache.h"
#include <fcntl.h>
#include <sys/stat.h>
#include "gdbcore.h"
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/ptrace.h>
#include <sys/user.h>
/* 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.
#include "gdbcore.h"
#include "frame.h"
#include "value.h"
+#include "regcache.h"
/* For i386_linux_skip_solib_resolver. */
#include "symtab.h"
#include "gdbcmd.h"
#include "command.h"
#include "arch-utils.h"
+#include "regcache.h"
static long i386_get_frame_setup (CORE_ADDR);
/* 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.
#include "inferior.h"
#include "language.h"
#include "gdbcore.h"
+#include "regcache.h"
#ifdef USG
#include <sys/types.h>
/* 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.
#include <machine/frame.h>
#include "inferior.h"
#include "gdbcore.h" /* for registers_fetched() */
+#include "regcache.h"
void
fetch_inferior_registers (int regno)
/* 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.
#include "defs.h"
#include "inferior.h"
+#include "regcache.h"
#include <sys/types.h>
#include <sys/ptrace.h>
/* 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.
#include "defs.h"
#include "inferior.h"
#include "floatformat.h"
+#include "regcache.h"
#include "gdb_assert.h"
#include <stdio.h>
/* 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.
#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
/* 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.
#include "defs.h"
#include "inferior.h"
#include "floatformat.h"
+#include "regcache.h"
#include <stdio.h>
/* 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.
#include "frame.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/param.h>
#include <sys/dir.h>
/* 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.
#include <machine/frame.h>
#include "inferior.h"
#include "gdbcore.h" /* for registers_fetched() */
+#include "regcache.h"
#define RF(dst, src) \
memcpy(®isters[REGISTER_BYTE(dst)], &src, sizeof(src))
/* 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.
#include "defs.h"
#include "value.h"
#include "inferior.h"
+#include "regcache.h"
#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
#include "defs.h"
#include "inferior.h"
#include "value.h"
+#include "regcache.h"
#include "i387-nat.h"
/* 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.
#include "value.h"
#include "gdbcore.h"
#include "floatformat.h"
+#include "regcache.h"
/* FIXME: Eliminate the next two functions when we have the time to
/* 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.
#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);
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/procfs.h>
#include "symtab.h"
/* 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.
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <signal.h>
#include <sys/ptrace.h>
#include "gdbcore.h"
#include "arch-utils.h"
#include "floatformat.h"
+#include "regcache.h"
#include "objfiles.h"
#include "elf/common.h" /* for DT_PLTGOT value */
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);
#include "inferior.h"
#include "target.h"
#include "gdb_string.h"
+#include "regcache.h"
#include "gdb_wait.h"
#include "top.h"
#include <signal.h>
#include "inf-loop.h"
+#include "regcache.h"
/* Prototypes for local functions */
/* 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.
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/time.h>
#include <sys/procfs.h>
/* 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.
#include "inferior.h"
#include "gdbcore.h"
#include "target.h"
+#include "regcache.h"
#include "gdb_string.h"
#include <sys/time.h>
/* 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.
#include "gdbthread.h"
#include "inferior.h"
#include "target.h"
+#include "regcache.h"
#define DEBUG 1
/* 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"
/* 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.
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/ptrace.h>
#include <sys/wait.h>
#include "gdb_wait.h"
#include "gdbcmd.h"
#include "gdbcore.h"
+#include "regcache.h"
#if 0
#include <servers/machid_lib.h>
#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);
/* 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.
#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
/* 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.
#include "symfile.h"
#include "objfiles.h"
#include "arch-utils.h"
+#include "regcache.h"
#include "target.h"
#include "opcode/m68hc11.h"
#include "value.h"
#include "gdb_string.h"
#include "inferior.h"
+#include "regcache.h"
\f
#define P_LINKL_FP 0x480e
/* 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.
#include "inferior.h"
#include "language.h"
#include "gdbcore.h"
+#include "regcache.h"
#ifdef USG
#include <sys/types.h>
/* 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.
#include <machine/frame.h>
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
void
fetch_inferior_registers (int regno)
#include "defs.h"
#include "gdbtypes.h"
+#include "regcache.h"
int
m68knbsd_use_struct_convention (int gcc_p, struct type *type)
/* 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.
#include "defs.h"
#include "frame.h"
#include "inferior.h"
+#include "regcache.h"
#include <sys/types.h>
#include <sys/param.h>
/* 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.
#include "symtab.h"
#include "setjmp.h"
#include "value.h"
+#include "regcache.h"
/* Size of an instruction */
#define BYTES_PER_88K_INSN 4
/* 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.
#include "gdb_string.h"
#include "gdbthread.h"
#include "gdbcmd.h"
+#include "regcache.h"
#include <Processes.h>
/* 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.
#include "target.h"
#include "monitor.h"
#include "gdb_string.h"
+#include "regcache.h"
/* Functions used only in this file. */
/* 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.
#include "symtab.h"
#include "value.h"
#include "gdbcmd.h"
+#include "regcache.h"
/* Functions declared and used only in this file */
/* 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.
#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>
/* 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.
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/param.h>
#include "gdbtypes.h"
#include "target.h"
#include "arch-utils.h"
+#include "regcache.h"
#include "opcode/mips.h"
#include "elf/mips.h"
/* 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.
#include "defs.h"
#include "inferior.h"
+#include "regcache.h"
#include <stdio.h>
/* 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.
#include "inferior.h"
#include "gdbcore.h"
#include "target.h"
+#include "regcache.h"
#include <sys/time.h>
#include <sys/procfs.h>
/* 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.
#include "gdb_string.h"
#include "gdbcore.h"
#include "symfile.h"
+#include "regcache.h"
/* Should call_function allocate stack space for a struct return? */
#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,
#include "inferior.h"
#include "gdb_regex.h"
#include "srec.h"
+#include "regcache.h"
static char *dev_name;
static struct target_ops *targ_ops;
/* 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.
#include "defs.h"
#include "inferior.h"
+#include "regcache.h"
#include <stdio.h>
/* 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.
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
+#include "regcache.h"
#define RF(dst, src) \
memcpy(®isters[REGISTER_BYTE(dst)], &src, sizeof(src))
#include <signal.h>
#include "serial.h"
#include "ocd.h"
+#include "regcache.h"
/* Prototypes for local functions */
/* 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.
#include "gdbcmd.h"
#include "assert.h"
#include "language.h"
+#include "regcache.h"
#include <fcntl.h>
#include "serial.h"
#include "ocd.h"
#include "ppc-tdep.h"
+#include "regcache.h"
static void bdm_ppc_open (char *name, int from_tty);
/* 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.
#include "frame.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/types.h>
#include <sys/param.h>
/* 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.
#include "gdbcmd.h"
#include "symfile.h"
#include "objfiles.h"
+#include "regcache.h"
#include "ppc-tdep.h"
/* 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
#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)
/* 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.
#include "inferior.h"
#include "gdbcore.h"
#include "ppc-tdep.h"
+#include "regcache.h"
#define RF(dst, src) \
memcpy(®isters[REGISTER_BYTE(dst)], &src, sizeof(src))
/* 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.
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/procfs.h>
#include <sys/ptrace.h>
#include <sys/param.h>
#include "target.h"
#include "gdbarch.h"
#include "gdbcmd.h"
+#include "regcache.h"
/*
* DATA STRUCTURE
/* 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.
--- /dev/null
+/* 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 */
#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.
#include "remote-utils.h"
#include "inferior.h"
#include "version.h"
+#include "regcache.h"
extern int baud_rate;
#include "defs.h"
#include "inferior.h"
#include "gdb_string.h"
+#include "regcache.h"
#include <ctype.h>
#include <fcntl.h>
#include <setjmp.h>
#include "serial.h"
#include "remote-utils.h"
#include "symfile.h"
+#include "regcache.h"
#include <time.h>
#include <ctype.h>
#include "defs.h"
#include "gdb_string.h"
+#include "regcache.h"
#include "inferior.h"
#include "bfd.h"
#include "remote-utils.h"
#include "gdbcore.h"
#include "serial.h"
+#include "regcache.h"
/* Prototypes for local functions */
/* 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.
#include "target.h"
#include "monitor.h"
#include "serial.h"
+#include "regcache.h"
static void est_open (char *args, int from_tty);
/* 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).
#include "target.h"
#include "monitor.h"
#include "serial.h"
+#include "regcache.h"
static void hms_open (char *args, int from_tty);
static void
#include "target.h"
#include "remote-utils.h"
#include "gdb_string.h"
+#include "regcache.h"
#include <sys/types.h>
#include <sys/stat.h>
#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)
#include "gdbcore.h"
#include "command.h"
#include "floatformat.h"
+#include "regcache.h"
#include <sys/file.h>
#include <ctype.h>
#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 */
#include "gdbcore.h"
#include "breakpoint.h"
#include "completer.h"
+#include "regcache.h"
#ifdef USG
#include <sys/types.h>
#include "remote-utils.h"
#include "gdb_string.h"
#include "gdbcore.h"
+#include "regcache.h"
#ifdef HAVE_TIME_H
#include <time.h>
#include "gdb-stabs.h"
#include "gdbthread.h"
#include "gdbcore.h"
+#include "regcache.h"
#ifdef USG
#include <sys/types.h>
#include "remote-sim.h"
#include "remote-utils.h"
#include "command.h"
+#include "regcache.h"
/* Prototypes */
#include "gdb_string.h"
#include <sys/types.h>
#include "serial.h"
+#include "regcache.h"
extern struct target_ops st2000_ops; /* Forward declaration */
#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. */
/* 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.
#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);
#include "symfile.h"
#include "objfiles.h"
#include "gdb-stabs.h"
+#include "regcache.h"
#include "gdb_string.h"
#include <errno.h>
#include "command.h"
#include "symtab.h"
#include "symfile.h" /* for struct complaint */
+#include "regcache.h"
#include "gdb_string.h"
#include <errno.h>
#include "command.h"
#include "symtab.h"
#include "symfile.h" /* for struct complaint */
+#include "regcache.h"
#include "gdb_string.h"
#include <errno.h>
#include "command.h"
#include "symtab.h"
#include "symfile.h" /* for struct complaint */
+#include "regcache.h"
#include "gdb_string.h"
#include <errno.h>
#include "command.h"
#include "symtab.h"
#include "symfile.h" /* for struct complaint */
+#include "regcache.h"
#include "gdb_string.h"
#include <errno.h>
#include "command.h"
#include "symtab.h"
#include "symfile.h" /* for struct complaint */
+#include "regcache.h"
#include "gdb_string.h"
#include <errno.h>
#include "gdb-stabs.h"
#include "gdbthread.h"
#include "remote.h"
+#include "regcache.h"
#include <ctype.h>
#include <sys/time.h>
/* 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.
#include "target.h"
#include "monitor.h"
#include "serial.h"
+#include "regcache.h"
static void rom68k_open (char *args, int from_tty);
#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>
#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 */
#include "gdb_string.h"
#include "arch-utils.h"
#include "floatformat.h"
+#include "regcache.h"
#include "solib-svr4.h"
#include "serial.h"
#include "srec.h"
#include "arch-utils.h"
+#include "regcache.h"
static serial_t parallel;
static int parallel_in_use;
/* 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.
#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 */
#define _SYSCALL32 /* for Sparc64 cross Sparc32 */
#include "defs.h"
+#include "regcache.h"
#include <sys/types.h>
#include "gdbcmd.h"
#include "assert.h"
#include "language.h"
+#include "regcache.h"
#include <fcntl.h>
/* 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.
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
+#include "sparc-nat.c"
+#include "regcache.h"
#include <signal.h>
#include <sys/ptrace.h>
#include "value.h"
#include "bfd.h"
#include "gdb_string.h"
+#include "regcache.h"
#ifdef USE_PROC_FS
#include <sys/procfs.h>
#include "breakpoint.h"
#include "target.h"
#include "serial.h"
+#include "regcache.h"
#include <sys/types.h>
#if (!defined(__GO32__) && !defined(_WIN32)) || defined(__CYGWIN32__)
/* 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.
#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);
/* 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.
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/ptrace.h>
#define KERNEL /* To get floating point reg definitions */
/* 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.
#include "frame.h"
#include "inferior.h"
#include "gdbcore.h"
+#include "regcache.h"
#include <sys/param.h>
#include <sys/dir.h>
#include "inferior.h"
#include "symtab.h"
#include "target.h"
+#include "regcache.h"
/* FIXME: What is the _INKERNEL define for? */
#define _INKERNEL
#include "gdb_wait.h"
#include "dcache.h"
#include <signal.h>
+#include "regcache.h"
extern int errno;
/* 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.
#include "symfile.h"
#include "objfiles.h"
#include "target.h"
+#include "regcache.h"
#ifndef LIBTHREAD_DB_SO
#define LIBTHREAD_DB_SO "libthread_db.so.1"
#include "gdbthread.h"
#include "command.h"
#include "gdbcmd.h"
+#include "regcache.h"
#include <ctype.h>
#include <sys/types.h>
/* 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.
#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.
/* 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.
#include "remote.h"
#include "linespec.h"
#include "completer.h"
+#include "regcache.h"
#include "ax.h"
#include "ax-gdb.h"
/* 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.
#include "inferior.h"
#include "symtab.h"
#include "value.h"
+#include "regcache.h"
#include <sys/types.h>
#include <sys/param.h>
/* 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.
#include "defs.h"
#include "frame.h"
#include "inferior.h"
+#include "regcache.h"
#include <sys/param.h>
#include <sys/dir.h>
/* 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
#include "gdbcore.h"
#include "symfile.h"
#include "arch-utils.h"
+#include "regcache.h"
static char *v850_generic_reg_names[] = REGISTER_NAMES;
/* 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.
#include "gdbcore.h"
#include "value.h"
#include "command.h"
+#include "regcache.h"
#include <tcl.h>
#include <windows.h>
/* 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.
#include "demangle.h"
#include "language.h"
#include "gdbcmd.h"
+#include "regcache.h"
#include <errno.h>
#include "gdb_string.h"
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);
/* 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.
#include "gdbtypes.h"
#include "dis-asm.h"
#include "gdbcore.h"
+#include "regcache.h"
/* Return the saved PC from this frame. */
/* 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.
#include "monitor.h"
#include "serial.h"
#include "xmodem.h"
+#include "regcache.h"
static void w89k_open (char *args, int from_tty);
/* 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.
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 */
#include "gdbcore.h"
#include "command.h"
#include "completer.h"
+#include "regcache.h"
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
#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);
/* 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.
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 */
#include "gdbcore.h"
#include "command.h"
#include "completer.h"
+#include "regcache.h"
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
/* 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.
#include "gdbtypes.h"
#include "dis-asm.h"
#include "gdbcore.h"
+#include "regcache.h"
#include "value.h" /* For read_register() */