change for core_read_registers in struct core_fns.
* core-regset.c (fetch_core_registers): Ditto & add prototype.
* core-sol2.c (fetch_core_registers): Ditto & add prototype.
* i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
* i386b-nat.c (fetch_core_registers): Ditto.
* i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
* irix4-nat.c (fetch_core_registers): Ditto.
* irix5-nat.c (fetch_core_registers): Ditto.
* lynx-nat.c (fetch_core_registers): Ditto & add prototype.
* m68knbsd-nat.c (fetch_core_registers): Ditto.
* mips-nat.c (fetch_core_registers): Ditto & add prototype.
* rs6000-nat.c (fetch_core_registers): Ditto.
* sparc-nat.c (fetch_core_registers): Ditto.
* sun3-nat.c (fetch_core_registers): Ditto & add prototype.
* ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
* alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
* delta68-nat.c (register_addr): Ditto.
* gdbserver/low-linux.c (register_addr): Ditto.
* gdbserver/low-hppabsd.c (register_addr): Ditto.
* i386m3-nat.c (register_addr): Ditto.
* mips-nat.c (register_addr): Ditto.
* ultra3-nat.c (register_addr): Ditto.
+Sun Sep 8 15:26:27 1996 Fred Fish <fnf@cygnus.com>
+
+ * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
+ change for core_read_registers in struct core_fns.
+ * core-regset.c (fetch_core_registers): Ditto & add prototype.
+ * core-sol2.c (fetch_core_registers): Ditto & add prototype.
+ * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
+ * i386b-nat.c (fetch_core_registers): Ditto.
+ * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
+ * irix4-nat.c (fetch_core_registers): Ditto.
+ * irix5-nat.c (fetch_core_registers): Ditto.
+ * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
+ * m68knbsd-nat.c (fetch_core_registers): Ditto.
+ * mips-nat.c (fetch_core_registers): Ditto & add prototype.
+ * rs6000-nat.c (fetch_core_registers): Ditto.
+ * sparc-nat.c (fetch_core_registers): Ditto.
+ * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
+ * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
+
+ * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
+ * delta68-nat.c (register_addr): Ditto.
+ * gdbserver/low-linux.c (register_addr): Ditto.
+ * gdbserver/low-hppabsd.c (register_addr): Ditto.
+ * i386m3-nat.c (register_addr): Ditto.
+ * mips-nat.c (register_addr): Ditto.
+ * ultra3-nat.c (register_addr): Ditto.
+
Sun Sep 8 15:14:00 1996 Stu Grossman (grossman@critters.cygnus.com)
* blockframe.c (inside_main_func): Cleanup slightly. Move
#endif
#include <sys/user.h>
-static void fetch_core_registers PARAMS ((char *, unsigned, int, unsigned));
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
/* Size of elements in jmpbuf */
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned reg_addr;
+ CORE_ADDR reg_addr;
{
register int regno;
register int addr;
/* Return the ptrace ``address'' of register REGNO. */
-unsigned int
+CORE_ADDR
register_addr (regno, blockend)
int regno;
- int blockend;
+ CORE_ADDR blockend;
{
return REGISTER_PTRACE_ADDR (regno);
}
#include <sys/core.h>
#endif
-static void fetch_core_registers PARAMS ((char *core_reg_sect,
- unsigned core_reg_size, int which,
- CORE_ADDR reg_addr));
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
/* Extract the register values out of the core file and store
them where `read_register' will find them.
#include "command.h"
#include "gdbcore.h"
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
/*
GLOBAL FUNCTION
void fetch_core_registers (char *core_reg_sect,
unsigned core_reg_size,
- int which, unsigned in reg_addr)
+ int which, CORE_ADDR reg_addr)
DESCRIPTION
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int reg_addr; /* Unused in this version */
+ CORE_ADDR reg_addr; /* Unused in this version */
{
#if defined (HAVE_GREGSET_T) && defined (HAVE_FPREGSET_T)
gregset_t gregset;
#include "command.h"
#include "gdbcore.h"
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
static void
fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int reg_addr; /* Unused in this version */
+ CORE_ADDR reg_addr; /* Unused in this version */
{
prgregset_t prgregset;
prfpregset_t prfpregset;
/* Return the address in the core dump or inferior of register REGNO.
BLOCKEND is the address of the end of the user structure. */
-unsigned int
+CORE_ADDR
register_addr (regno, blockend)
int regno;
- int blockend;
+ CORE_ADDR blockend;
{
static int sysv68reg[] =
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, 15, 16 };
#include "target.h"
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
\f
/* this table must line up with REGISTER_NAMES in tm-i386v.h */
/* symbols like 'EAX' come from <sys/reg.h> */
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int reg_addr; /* ignored */
+ CORE_ADDR reg_addr; /* ignored */
{
if (which == 0)
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int ignore;
+ CORE_ADDR ignore;
{
struct md_core *core_reg = (struct md_core *)core_reg_sect;
* Called by core-aout.c(fetch_core_registers)
*/
-unsigned int
+CORE_ADDR
register_addr (regno, blockend)
int regno;
- int blockend;
+ CORE_ADDR blockend;
{
- unsigned int addr;
+ CORE_ADDR addr;
if (regno < 0 || regno >= NUM_REGS)
error ("Invalid register number %d.", regno);
#include "gdb_stat.h"
#include <sys/core.h>
-
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
void
fetch_inferior_registers (regno)
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int reg_addr; /* Unused in this version */
+ CORE_ADDR reg_addr; /* Unused in this version */
{
int val;
extern char registers[];
typedef unsigned int greg_t; /* why isn't this defined? */
static void
-fetch_core_registers PARAMS ((char *, unsigned int, int, unsigned int));
+fetch_core_registers PARAMS ((char *, unsigned int, int, CORE_ADDR));
/*
* See the comment in m68k-tdep.c regarding the utility of these functions.
char *core_reg_sect;
unsigned core_reg_size;
int which; /* Unused */
- unsigned int reg_addr; /* Unused */
+ CORE_ADDR reg_addr; /* Unused */
{
if (core_reg_size != REGISTER_BYTES)
{
#include <setjmp.h> /* For JB_XXX. */
static void
-fetch_core_registers PARAMS ((char *, unsigned int, int, unsigned int));
+fetch_core_registers PARAMS ((char *, unsigned int, int, CORE_ADDR));
/* Size of elements in jmpbuf */
char *core_reg_sect;
unsigned core_reg_size;
int which; /* Unused */
- unsigned int reg_addr; /* Unused */
+ CORE_ADDR reg_addr; /* Unused */
{
if (core_reg_size != REGISTER_BYTES)
{
#include <sys/fpp.h>
static unsigned long registers_addr PARAMS ((int pid));
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR);
#define X(ENTRY)(offsetof(struct econtext, ENTRY))
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned reg_addr;
+ CORE_ADDR reg_addr;
{
struct st_entry s;
unsigned int regno;
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int ignore;
+ CORE_ADDR ignore;
{
struct md_core *core_reg = (struct md_core *)core_reg_sect;
static char zerobuf[MAX_REGISTER_RAW_SIZE] = {0};
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
/* Get all registers from the inferior */
void
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned reg_addr;
+ CORE_ADDR reg_addr;
{
register int regno;
register unsigned int addr;
/* Return the address in the core dump or inferior of register REGNO.
BLOCKEND is the address of the end of the user structure. */
-unsigned int
+CORE_ADDR
register_addr (regno, blockend)
int regno;
- int blockend;
+ CORE_ADDR blockend;
{
- int addr;
+ CORE_ADDR addr;
if (regno < 0 || regno >= NUM_REGS)
error ("Invalid register number %d.", regno);
vmap_symtab PARAMS ((struct vmap *));
static void
-fetch_core_registers PARAMS ((char *, unsigned int, int, unsigned int));
+fetch_core_registers PARAMS ((char *, unsigned int, int, CORE_ADDR));
static void
exec_one_dummy_insn PARAMS ((void));
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int reg_addr; /* Unused in this version */
+ CORE_ADDR reg_addr; /* Unused in this version */
{
/* fetch GPRs and special registers from the first register section
in core bfd. */
#define FP_REGS 4
static void
-fetch_core_registers PARAMS ((char *, unsigned int, int, unsigned int));
+fetch_core_registers PARAMS ((char *, unsigned int, int, CORE_ADDR));
/* Fetch one or more registers from the inferior. REGNO == -1 to get
them all. We actually fetch more than requested, when convenient,
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int ignore; /* reg addr, unused in this version */
+ CORE_ADDR ignore; /* reg addr, unused in this version */
{
if (which == 0) {
#define KERNEL /* To get floating point reg definitions */
#include <machine/reg.h>
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
void
fetch_inferior_registers (regno)
int regno;
char *core_reg_sect;
unsigned core_reg_size;
int which;
- unsigned int reg_addr; /* Unused in this version */
+ CORE_ADDR reg_addr; /* Unused in this version */
{
extern char registers[];
struct regs *regs = (struct regs *) core_reg_sect;
#include <sys/file.h>
#include "gdb_stat.h"
+static void fetch_core_registers PARAMS ((char *, unsigned, int, CORE_ADDR));
+
/* Assumes support for AMD's Binary Compatibility Standard
for ptrace(). If you define ULTRA3, the ultra3 extensions to
ptrace() are used allowing the reading of more than one register
*/
static void
-fetch_core_registers ()
+fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
+ char *core_reg_sect; /* Unused in this version */
+ unsigned core_reg_size; /* Unused in this version */
+ int which; /* Unused in this version */
+ CORE_ADDR reg_addr; /* Unused in this version */
{
register int regno;
int val;
* available to the user is specified in 'regno', then an address that
* will cause ptrace() to fail is returned.
*/
-unsigned int
+CORE_ADDR
register_addr (regno,blockend)
- unsigned int regno;
- char *blockend;
+ int regno;
+ CORE_ADDR blockend;
{
if ((regno >= LR0_REGNUM) && (regno < LR0_REGNUM + 128)) {
return(offsetof(struct ptrace_user,pt_lr[regno-LR0_REGNUM]));