aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386b-nat.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-07 17:56:59 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-07 17:56:59 +0000
commit11ebf93929f438dd7e620c509ed26e10d8f27452 (patch)
tree1497106359ac0848d9875b9096b4bec6bf2eaf0f /gdb/i386b-nat.c
parent03a372ed70ea5a518c98b6bc005162b014b2801d (diff)
downloadgdb-11ebf93929f438dd7e620c509ed26e10d8f27452.zip
gdb-11ebf93929f438dd7e620c509ed26e10d8f27452.tar.gz
gdb-11ebf93929f438dd7e620c509ed26e10d8f27452.tar.bz2
* i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
Diffstat (limited to 'gdb/i386b-nat.c')
-rw-r--r--gdb/i386b-nat.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/i386b-nat.c b/gdb/i386b-nat.c
index 07779dd..0bcde9c 100644
--- a/gdb/i386b-nat.c
+++ b/gdb/i386b-nat.c
@@ -28,12 +28,26 @@ static int tregmap[] =
tESP, tEBP, tESI, tEDI,
tEIP, tEFLAGS, tCS, tSS
};
+
+#ifdef sEAX
static int sregmap[] =
{
sEAX, sECX, sEDX, sEBX,
sESP, sEBP, sESI, sEDI,
sEIP, sEFLAGS, sCS, sSS
};
+#else /* No sEAX */
+
+/* NetBSD has decided to collapse the s* and t* symbols. So if the s*
+ ones aren't around, use the t* ones for sregmap too. */
+
+static int sregmap[] =
+{
+ tEAX, tECX, tEDX, tEBX,
+ tESP, tEBP, tESI, tEDI,
+ tEIP, tEFLAGS, tCS, tSS
+};
+#endif /* No sEAX */
/* blockend is the value of u.u_ar0, and points to the
place where ES is stored. */