From 0a9bddab0f47d7a09c67528a976022c2196d2dce Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Sun, 3 Oct 2021 15:01:21 +0000 Subject: [PATCH] gdb: Fix comment in riscv_scan_prologue I found an inaccurate comment in riscv_scan_prologue. This commit fixes it. --- gdb/riscv-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);