From: Lei Liu Date: Tue, 19 Feb 2013 07:50:30 +0000 (+0000) Subject: 2013-02-19 Lei Liu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ce4c1124bb6579cd7dba278b86d91db3380fa97;p=binutils-gdb.git 2013-02-19 Lei Liu * mips-linux-nat.c (mips64_linux_regsets_store_registers): Don't check DSP register number if HAVE_DSP is not set. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c511ff1aef..c23e3184a0a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-02-19 Lei Liu + + * mips-linux-nat.c (mips64_linux_regsets_store_registers): + Don't check DSP register number if HAVE_DSP is not set. + 2013-02-19 Alan Modra * elfread.c (struct build_id): Delete. Use struct elf_build_id diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index 9e78891f9af..61e83c6339f 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -326,7 +326,7 @@ mips64_linux_regsets_store_registers (struct target_ops *ops, have_dsp = mips_regnum (gdbarch)->dspctl != -1; if (!have_dsp) is_dsp = 0; - if (regno >= mips_regnum (gdbarch)->dspacc + else if (regno >= mips_regnum (gdbarch)->dspacc && regno < mips_regnum (gdbarch)->dspacc + 6) is_dsp = 1; else if (regno == mips_regnum (gdbarch)->dspctl)