diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 1996-03-07 20:13:45 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 1996-03-07 20:13:45 +0000 |
commit | 43ece84dc3425b5f8459469c525429e156029080 (patch) | |
tree | d132f0f5f7f6133146aec980174c96ec6df11316 /gdb/i386b-nat.c | |
parent | 73578b1e49a7be6857c625deae6b3c128c852b9b (diff) | |
download | gdb-43ece84dc3425b5f8459469c525429e156029080.zip gdb-43ece84dc3425b5f8459469c525429e156029080.tar.gz gdb-43ece84dc3425b5f8459469c525429e156029080.tar.bz2 |
* i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
s* and t* symbols too.
Diffstat (limited to 'gdb/i386b-nat.c')
-rw-r--r-- | gdb/i386b-nat.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/i386b-nat.c b/gdb/i386b-nat.c index bb78d72..d273cab 100644 --- a/gdb/i386b-nat.c +++ b/gdb/i386b-nat.c @@ -81,12 +81,25 @@ static int tregmap[] = tEIP, tEFLAGS, tCS, tSS }; +#ifdef sEAX static int sregmap[] = { sEAX, sECX, sEDX, sEBX, sESP, sEBP, sESI, sEDI, sEIP, sEFLAGS, sCS, sSS }; +#else /* No sEAX */ + +/* FreeBSD 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. */ |