gdb: Fix comment in riscv_scan_prologue
authorLancelot SIX <lsix@lancelotsix.com>
Sun, 3 Oct 2021 15:01:21 +0000 (15:01 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Sun, 3 Oct 2021 15:01:21 +0000 (15:01 +0000)
I found an inaccurate comment in riscv_scan_prologue.  This commit fixes
it.

gdb/riscv-tdep.c

index b8844b61aae1eb8a0f6193260f6d975aa6743370..4be89022437477e3d4a404fe0d5235e5edfe9daa 100644 (file)
@@ -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);