]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: or1k: fixup linux regcache comment
authorStafford Horne <shorne@gmail.com>
Thu, 8 Oct 2020 21:24:50 +0000 (06:24 +0900)
committerStafford Horne <shorne@gmail.com>
Thu, 28 Oct 2021 20:22:12 +0000 (05:22 +0900)
The old comment was not properly updated from the RISC-V example used.
Update it to match OpenRISC.

gdb/or1k-linux-tdep.c

index 2ad55f0d9ec8c663cf587238ed2607e7adce4d9a..2efb4d0b0f9d76e32092bc0b2ce2f2de4432094a 100644 (file)
 #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[] =
 {