Module Name: src
Committed By: rin
Date: Thu Aug 17 06:06:09 UTC 2023
Modified Files:
src/external/gpl3/gdb/dist/gdb: hppa-netbsd-tdep.c
Log Message:
gdb/hppa: Fix register defs, lost during merge
XXX compile test only
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gdb/dist/gdb/hppa-netbsd-tdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/hppa-netbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/hppa-netbsd-tdep.c:1.1.1.1 src/external/gpl3/gdb/dist/gdb/hppa-netbsd-tdep.c:1.2
--- src/external/gpl3/gdb/dist/gdb/hppa-netbsd-tdep.c:1.1.1.1 Sun Jul 30 22:44:43 2023
+++ src/external/gpl3/gdb/dist/gdb/hppa-netbsd-tdep.c Thu Aug 17 06:06:09 2023
@@ -59,6 +59,19 @@ static int hppanbsd_mc_reg_offset[] =
38 * 4, /* sr1 */
39 * 4, /* sr2 */
40 * 4, /* sr3 */
+ -1, /* 48 */
+ -1, /* 49 */
+ -1, /* 50 */
+ -1, /* 51 */
+ -1, /* 52 */
+ -1, /* 53 */
+ -1, /* 54 */
+ -1, /* 55 */
+ -1, /* 56 */
+ -1, /* 57 CR24 */
+ -1, /* 58 CR25 */
+ -1, /* 59 CR26 */
+ 43 * 4, /* HPPA_CR27_REGNUM */
/* more tbd */
};
@@ -130,7 +143,7 @@ hppanbsd_sigtramp_cache_init (const stru
/* Core file support. */
/* Sizeof `struct reg' in <machine/reg.h>. */
-#define HPPANBSD_SIZEOF_GREGS (44 * 4)
+#define HPPANBSD_SIZEOF_GREGS (47 * 4)
static int hppanbsd_reg_offset[] =
{
@@ -154,6 +167,25 @@ static int hppanbsd_reg_offset[] =
-1, /* HPPA_ISR_REGNUM */
-1, /* HPPA_IOR_REGNUM */
0 * 4, /* HPPA_IPSW_REGNUM */
+ -1, /* spare? */
+ 41 * 4, /* HPPA_SR4_REGNUM */
+ 37 * 4, /* sr0 */
+ 38 * 4, /* sr1 */
+ 39 * 4, /* sr2 */
+ 40 * 4, /* sr3 */
+ -1, /* 48 */
+ -1, /* 49 */
+ -1, /* 50 */
+ -1, /* 51 */
+ -1, /* 52 */
+ -1, /* 53 */
+ -1, /* 54 */
+ -1, /* 55 */
+ -1, /* 56 */
+ -1, /* 57 */
+ -1, /* 58 */
+ -1, /* 59 */
+ 46 * 4, /* HPPA_CR27_REGNUM */
};
/* Supply register REGNUM from the buffer specified by GREGS and LEN