diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-07 17:56:59 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-07 17:56:59 +0000 |
commit | 11ebf93929f438dd7e620c509ed26e10d8f27452 (patch) | |
tree | 1497106359ac0848d9875b9096b4bec6bf2eaf0f | |
parent | 03a372ed70ea5a518c98b6bc005162b014b2801d (diff) | |
download | gdb-11ebf93929f438dd7e620c509ed26e10d8f27452.zip gdb-11ebf93929f438dd7e620c509ed26e10d8f27452.tar.gz gdb-11ebf93929f438dd7e620c509ed26e10d8f27452.tar.bz2 |
* i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/i386b-nat.c | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9aa3bb6..49d1201 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc. + Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com) * symtab.c (lookup_symbol): Don't try adding .c to the name. 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. */ |