From: Lancelot SIX Date: Sun, 3 Oct 2021 15:01:21 +0000 (+0000) Subject: gdb: Fix comment in riscv_scan_prologue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a9bddab0f47d7a09c67528a976022c2196d2dce;p=binutils-gdb.git gdb: Fix comment in riscv_scan_prologue I found an inaccurate comment in riscv_scan_prologue. This commit fixes it. --- 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);