OSDN Git Service

Allocate regset structures in the gdbarch's obstack, not using
authorjimb <jimb>
Fri, 21 May 2004 22:15:08 +0000 (22:15 +0000)
committerjimb <jimb>
Fri, 21 May 2004 22:15:08 +0000 (22:15 +0000)
commit868bfe86393bf99394c0e353d78ed122109ad239
treeb1c2896c206e1743e3ed5ff8e9246ceb8f06b52a
parent3c506ecac9e06403faf9843647e307dbf2cf9161
Allocate regset structures in the gdbarch's obstack, not using
xmalloc.
* regset.c (regset_alloc): Renamed from regset_xmalloc.
Add 'arch' argument.  Allocate the regset on arch's obstack, not
using xmalloc.
* regset.h (regset_alloc): Update declaration.
* am64-tdep.c (amd64_regset_from_core_section): Update call; pass
gdbarch argument.
* amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
* i386-tdep.c (i386_regset_from_core_section): Same.
* i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
* i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
* sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
* sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
* sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
* sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
12 files changed:
gdb/ChangeLog
gdb/amd64-tdep.c
gdb/amd64obsd-tdep.c
gdb/i386-tdep.c
gdb/i386nbsd-tdep.c
gdb/i386obsd-tdep.c
gdb/regset.c
gdb/regset.h
gdb/sparc64fbsd-tdep.c
gdb/sparc64nbsd-tdep.c
gdb/sparc64obsd-tdep.c
gdb/sparcnbsd-tdep.c