[7/7] MIPS: Reorder a reference to "BGTZ, BGTZL" in `mips32_next_pc'

Message ID alpine.DEB.2.21.2607230115160.14485@angie.orcam.me.uk
State New
Headers
Series MIPS+testsuite: BLEZL stepping fix and associated test infrastructure |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed

Commit Message

Maciej W. Rozycki July 23, 2026, 6:53 p.m. UTC
  From: Maciej W. Rozycki <macro@globalfoundries.com>

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 <macro@orcam.me.uk>
---
 gdb/mips-tdep.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

gdb-mips-next-pc-bgtz-comment.diff
  

Patch

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