aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2010-08-05 03:03:36 +0000
committerHui Zhu <teawater@gmail.com>2010-08-05 03:03:36 +0000
commit50e8a0d53b037c640e313d57ddbe88db8eeea5bb (patch)
tree6673fd6626be39931f3285d758f8fa7ec9c0ab04 /gdb/mips-tdep.c
parent966b060329894711be30d1aab7f295e61689cf1e (diff)
downloadgdb-50e8a0d53b037c640e313d57ddbe88db8eeea5bb.zip
gdb-50e8a0d53b037c640e313d57ddbe88db8eeea5bb.tar.gz
gdb-50e8a0d53b037c640e313d57ddbe88db8eeea5bb.tar.bz2
2010-08-05 Hui Zhu <teawater@gmail.com>
* mips-linux-tdep.c(regset.h): New include. (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper, mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper, mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper, mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper, mips_linux_regset_from_core_section): New functions. (fetch_core_registers, regset_core_fns): Deleted. (mips_linux_init_abi): Add mips_linux_regset_from_core_section. Deleted regset_core_fns. * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset, tdep->gregset64, tdep->fpregset and tdep->fpregset64. * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset and fpregset64.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 7e15041..fccd279 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -5749,6 +5749,10 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
tdep->mips_fpu_type = fpu_type;
tdep->register_size_valid_p = 0;
tdep->register_size = 0;
+ tdep->gregset = NULL;
+ tdep->gregset64 = NULL;
+ tdep->fpregset = NULL;
+ tdep->fpregset64 = NULL;
if (info.target_desc)
{