aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2007-07-20 15:31:56 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2007-07-20 15:31:56 +0000
commitce1f96de2eb40b231d2c8a1e50f64f5000b7cde8 (patch)
tree6de516336305bdfdedabbc207a406591cb6ba1d1 /gdb/mips-tdep.c
parentbcf1ea1e614dea13fc1d007a3031381377ab5f42 (diff)
downloadgdb-ce1f96de2eb40b231d2c8a1e50f64f5000b7cde8.zip
gdb-ce1f96de2eb40b231d2c8a1e50f64f5000b7cde8.tar.gz
gdb-ce1f96de2eb40b231d2c8a1e50f64f5000b7cde8.tar.bz2
* mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
a direct test.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 751945e..b4153fd 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1435,11 +1435,11 @@ mips16_next_pc (struct frame_info *frame, CORE_ADDR pc)
target monitor or stub is not developed enough to do a single_step.
It works by decoding the current instruction and predicting where a
branch will go. This isnt hard because all the data is available.
- The MIPS32 and MIPS16 variants are quite different */
+ The MIPS32 and MIPS16 variants are quite different. */
static CORE_ADDR
mips_next_pc (struct frame_info *frame, CORE_ADDR pc)
{
- if (pc & 0x01)
+ if (is_mips16_addr (pc))
return mips16_next_pc (frame, pc);
else
return mips32_next_pc (frame, pc);