forked from Imagelibrary/binutils-gdb
* irix4-nat.c (fetch_core_registers): Special version of this for
Irix 4.x, which stores regs a bit differently from other /proc based systems. * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c to new file core-svr4.c. * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh, config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o to NATDEPFILES. * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* Native support for the SGI Iris running IRIX version 4, for GDB.
|
||||
Copyright 1988, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
|
||||
Copyright 1988, 1989, 1990, 1991, 1992, 1993 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.
|
||||
@@ -148,3 +148,19 @@ get_longjmp_target(pc)
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
|
||||
char *core_reg_sect;
|
||||
unsigned core_reg_size;
|
||||
int which; /* Unused */
|
||||
unsigned int reg_addr; /* Unused */
|
||||
{
|
||||
if (core_reg_size != REGISTER_BYTES)
|
||||
{
|
||||
warning ("wrong size gregset struct in core file");
|
||||
return;
|
||||
}
|
||||
|
||||
memcpy ((char *)registers, core_reg_sect, core_reg_size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user