aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-linux-nat.c
diff options
context:
space:
mode:
authorLei Liu <lei@sourceware.org>2013-02-19 07:50:30 +0000
committerLei Liu <lei@sourceware.org>2013-02-19 07:50:30 +0000
commit6ce4c1124bb6579cd7dba278b86d91db3380fa97 (patch)
tree4201c8a5c1607c2e73d0227d5f37b9ec4c2d1044 /gdb/mips-linux-nat.c
parent13dbc7852d17fb4ad277cad930870f954bd59764 (diff)
downloadgdb-6ce4c1124bb6579cd7dba278b86d91db3380fa97.zip
gdb-6ce4c1124bb6579cd7dba278b86d91db3380fa97.tar.gz
gdb-6ce4c1124bb6579cd7dba278b86d91db3380fa97.tar.bz2
2013-02-19 Lei Liu <lei.liu2@windriver.com>
* mips-linux-nat.c (mips64_linux_regsets_store_registers): Don't check DSP register number if HAVE_DSP is not set.
Diffstat (limited to 'gdb/mips-linux-nat.c')
-rw-r--r--gdb/mips-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
index 9e78891..61e83c6 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)