From 52e8bde10a23b7d7e6eb55f724c446890a2f9a86 Mon Sep 17 00:00:00 2001 From: drow Date: Thu, 7 Oct 2004 17:17:08 +0000 Subject: [PATCH] From Maciej W. Rozycki : * mips-tdep.c (mips32_next_pc): Check the register's contents, not its number for BLEZ/BLEZL and BGTZ/BGTZL. --- gdb/mips-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 05f823ee87..fffc70da19 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1167,7 +1167,7 @@ mips32_next_pc (CORE_ADDR pc) pc += 8; break; case 6: /* BLEZ, BLEZL */ - if (read_signed_register (itype_rs (inst) <= 0)) + if (read_signed_register (itype_rs (inst)) <= 0) pc += mips32_relative_offset (inst) + 4; else pc += 8; @@ -1175,7 +1175,7 @@ mips32_next_pc (CORE_ADDR pc) case 7: default: greater_branch: /* BGTZ, BGTZL */ - if (read_signed_register (itype_rs (inst) > 0)) + if (read_signed_register (itype_rs (inst)) > 0) pc += mips32_relative_offset (inst) + 4; else pc += 8; -- 2.11.0