mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
gdb: Fix comment in riscv_scan_prologue
I found an inaccurate comment in riscv_scan_prologue. This commit fixes it.
This commit is contained in:
parent
2b014cc535
commit
0a9bddab0f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user