[PATCH] Fix typo in riscv_register_info

Andreas Schwab schwab@suse.de
Thu Jul 19 09:55:00 GMT 2018


Signed-off-by: Andreas Schwab <schwab@suse.de>
---
 backends/ChangeLog    | 4 ++++
 backends/riscv_regs.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/backends/ChangeLog b/backends/ChangeLog
index bf31072e3a..79370b6f85 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-19  Andreas Schwab  <schwab@suse.de>
+
+	* riscv_regs.c (riscv_register_info): Fix typo.
+
 2018-07-17  Andreas Schwab  <schwab@suse.de>
 
 	* Makefile.am (riscv_SRCS): Add riscv_corenote.c.
diff --git a/backends/riscv_regs.c b/backends/riscv_regs.c
index 7b577ca0cb..d5961ad50b 100644
--- a/backends/riscv_regs.c
+++ b/backends/riscv_regs.c
@@ -106,7 +106,7 @@ riscv_register_info (Ebl *ebl, int regno, char *name, size_t namelen,
     case 26 ... 27:
       name[0] = 's';
       name[1] = '1';
-      name[1] = regno - 26 + '0';
+      name[2] = regno - 26 + '0';
       namelen = 3;
       break;
 
-- 
2.18.0


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Elfutils-devel mailing list