* [committed][OB PATCH] gdb: Fix comment in riscv_scan_prologue
@ 2021-10-03 15:09 Lancelot SIX
0 siblings, 0 replies; only message in thread
From: Lancelot SIX @ 2021-10-03 15:09 UTC (permalink / raw)
To: gdb-patches; +Cc: Lancelot SIX
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(-)
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);
--
2.30.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-03 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03 15:09 [committed][OB PATCH] gdb: Fix comment in riscv_scan_prologue Lancelot SIX
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).