[committed,OB] gdb: Fix comment in riscv_scan_prologue

Message ID 20211003150937.113087-1-lsix@lancelotsix.com
State New
Headers show
Series
  • [committed,OB] gdb: Fix comment in riscv_scan_prologue
Related show

Commit Message

Stafford Horne via Gdb-patches Oct. 3, 2021, 3:09 p.m.
Hi,

I found an inaccurate comment in riscv_scan_prologue.  This commit fixes
it.

This path have been pushed to truck under the obvious rule.

Best,
Lancelot.

---
 gdb/riscv-tdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.30.2

Patch

diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index b8844b61aae..4be89022437 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -1947,7 +1947,7 @@  riscv_scan_prologue (struct gdbarch *gdbarch,
 	}
       else if (insn.opcode () == riscv_insn::ADD)
 	{
-	  /* Handle: addi REG1, REG2, IMM  */
+	  /* Handle: add REG1, REG2, REG3  */
 	  gdb_assert (insn.rd () < RISCV_NUM_INTEGER_REGS);
 	  gdb_assert (insn.rs1 () < RISCV_NUM_INTEGER_REGS);
 	  gdb_assert (insn.rs2 () < RISCV_NUM_INTEGER_REGS);