diff options
author | Stu Grossman <grossman@cygnus> | 1993-04-20 06:01:56 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1993-04-20 06:01:56 +0000 |
commit | 9583b29548ca9634a751b3e06007c8bacbbdd96f (patch) | |
tree | 58448bfbd03e52f89a5f509efa4bac0929c9d031 /gdb/irix4-nat.c | |
parent | 0f213cc206222b983e736e59248eb641bba937ba (diff) | |
download | fsf-binutils-gdb-9583b29548ca9634a751b3e06007c8bacbbdd96f.zip fsf-binutils-gdb-9583b29548ca9634a751b3e06007c8bacbbdd96f.tar.gz fsf-binutils-gdb-9583b29548ca9634a751b3e06007c8bacbbdd96f.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/irix4-nat.c')
-rw-r--r-- | gdb/irix4-nat.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gdb/irix4-nat.c b/gdb/irix4-nat.c index c524c99..b13e288 100644 --- a/gdb/irix4-nat.c +++ b/gdb/irix4-nat.c @@ -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); +} |