aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-11-30 07:42:57 +0000
committerYao Qi <yao@codesourcery.com>2012-11-30 07:42:57 +0000
commit7cd12a76b7d6e6bdeb17364097ac05edfcb17481 (patch)
tree9d69cb92bc6cec7857a86e673d08533ff299032e /gdb
parent7a76f5b828a3d5e54e45988000de26121db9917e (diff)
downloadgdb-7cd12a76b7d6e6bdeb17364097ac05edfcb17481.zip
gdb-7cd12a76b7d6e6bdeb17364097ac05edfcb17481.tar.gz
gdb-7cd12a76b7d6e6bdeb17364097ac05edfcb17481.tar.bz2
gdb/
2012-11-30 Yao Qi <yao@codesourcery.com> * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't check REGNUM >= 0.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tic6x-linux-tdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 042f885..10e2019 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2012-11-30 Yao Qi <yao@codesourcery.com>
+ * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
+ check REGNUM >= 0.
+
+2012-11-30 Yao Qi <yao@codesourcery.com>
+
* infrun.c: Make the declaration of 'init_infwait_state'
static.
(init_infwait_state): Make it 'static'.
diff --git a/gdb/tic6x-linux-tdep.c b/gdb/tic6x-linux-tdep.c
index 3b96201..f4450c9 100644
--- a/gdb/tic6x-linux-tdep.c
+++ b/gdb/tic6x-linux-tdep.c
@@ -63,7 +63,7 @@ tic6x_register_sigcontext_offset (unsigned int regnum, struct gdbarch *gdbarch)
else if (regnum == TIC6X_B5_REGNUM || regnum == TIC6X_B5_REGNUM + 2
|| regnum == TIC6X_B5_REGNUM + 4)
return 4 * (regnum - TIC6X_B5_REGNUM + 19); /* B5, B7, B9 */
- else if (regnum >= 0 && regnum < TIC6X_A4_REGNUM)
+ else if (regnum < TIC6X_A4_REGNUM)
return 4 * (regnum - 0 + 8); /* A0 - A3 */
else if (regnum >= TIC6X_B0_REGNUM && regnum < TIC6X_B4_REGNUM)
return 4 * (regnum - TIC6X_B0_REGNUM + 15); /* B0 - B3 */