projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b014cc
)
gdb: Fix comment in riscv_scan_prologue
author
Lancelot SIX
<lsix@lancelotsix.com>
Sun, 3 Oct 2021 15:01:21 +0000
(15:01 +0000)
committer
Lancelot 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
patch
|
blob
|
history
diff --git
a/gdb/riscv-tdep.c
b/gdb/riscv-tdep.c
index b8844b61aae1eb8a0f6193260f6d975aa6743370..4be89022437477e3d4a404fe0d5235e5edfe9daa 100644
(file)
--- 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: add
i 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);