Fix signal-while-stepping-over-bp-other-thread.exp on targets always in non-stop
[deliverable/binutils-gdb.git] / gdb / tic6x-linux-tdep.c
index 3b96201feb85089a9d64caab4df92d68d3d4af7b..9e9d7046cdb18a22e678f075ca843c7c82b5bb02 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU/Linux on  TI C6x target support.
-   Copyright (C) 2011-2012 Free Software Foundation, Inc.
+   Copyright (C) 2011-2015 Free Software Foundation, Inc.
    Contributed by Yao Qi <yao@codesourcery.com>
 
    This file is part of GDB.
@@ -24,7 +24,6 @@
 #include "tic6x-tdep.h"
 #include "trad-frame.h"
 #include "tramp-frame.h"
-#include "gdb_assert.h"
 #include "elf-bfd.h"
 #include "elf/tic6x.h"
 
@@ -63,7 +62,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 */
This page took 0.024276 seconds and 4 git commands to generate.