[PATCH 7/7] MIPS: Reorder a reference to "BGTZ, BGTZL" in `mips32_next_pc'
"Maciej W. Rozycki" <[email protected]> Thu, 23 Jul 2026 19:53:15 +0100 (BST)
| Newsgroups | gmane.comp.gdb.patches |
|---|---|
| Message-ID | <[email protected]> |
From: Maciej W. Rozycki <[email protected]> Move a reference to "BGTZ, BGTZL" in `mips32_next_pc' to the leading case label as with the other instructions called out in the function. Approved-by: Maciej W. Rozycki <[email protected]> --- gdb/mips-tdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) gdb-mips-next-pc-bgtz-comment.diff Index: binutils-gdb/gdb/mips-tdep.c =================================================================== --- binutils-gdb.orig/gdb/mips-tdep.c +++ binutils-gdb/gdb/mips-tdep.c @@ -1822,9 +1822,9 @@ mips32_next_pc (struct regcache *regcach else pc += 8; break; - case 7: + case 7: /* BGTZ, BGTZL */ default: - greater_branch: /* BGTZ, BGTZL */ + greater_branch: if (regcache_raw_get_signed (regcache, itype_rs (inst)) > 0) pc += mips32_relative_offset (inst) + 4; else