aboutsummaryrefslogtreecommitdiff
path: root/gdb/or1k-linux-tdep.c
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2020-10-09 06:24:50 +0900
committerStafford Horne <shorne@gmail.com>2021-10-29 05:22:12 +0900
commitd786a34732bd3a3a862c9b8b61b6a9e3789c14d8 (patch)
tree7c82b5ab01500e16c4e4ca290248ac67830bf07a /gdb/or1k-linux-tdep.c
parent4933265c3f71b9134363d0c05f09542d5cc677f4 (diff)
downloadgdb-d786a34732bd3a3a862c9b8b61b6a9e3789c14d8.zip
gdb-d786a34732bd3a3a862c9b8b61b6a9e3789c14d8.tar.gz
gdb-d786a34732bd3a3a862c9b8b61b6a9e3789c14d8.tar.bz2
gdb: or1k: fixup linux regcache comment
The old comment was not properly updated from the RISC-V example used. Update it to match OpenRISC.
Diffstat (limited to 'gdb/or1k-linux-tdep.c')
-rw-r--r--gdb/or1k-linux-tdep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/or1k-linux-tdep.c b/gdb/or1k-linux-tdep.c
index 2ad55f0..2efb4d0 100644
--- a/gdb/or1k-linux-tdep.c
+++ b/gdb/or1k-linux-tdep.c
@@ -27,9 +27,10 @@
#include "trad-frame.h"
#include "gdbarch.h"
-/* Define the general register mapping. The kernel puts the PC at offset 0,
- gdb puts it at offset 32. Register x0 is always 0 and can be ignored.
- Registers x1 to x31 are in the same place. */
+/* Define the general register mapping. The kernel and GDB put registers
+ r1 to r31 in the same place. The NPC register is stored at index 32 in
+ linux and 33 in GDB, in GDB 32 is for PPC which is not popupated from linux.
+ Register r0 is always 0 and can be ignored. */
static const struct regcache_map_entry or1k_linux_gregmap[] =
{