From 43ece84dc3425b5f8459469c525429e156029080 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Thu, 7 Mar 1996 20:13:45 +0000 Subject: [PATCH] * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the s* and t* symbols too. --- gdb/ChangeLog | 5 +++++ gdb/i386b-nat.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2a9649a0b0..003e841209 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 7 12:09:51 1996 J.T. Conklin + + * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the + s* and t* symbols too. + Thu Mar 7 15:18:51 1996 James G. Smith * symfile.c (generic_load): Avoid division by zero. diff --git a/gdb/i386b-nat.c b/gdb/i386b-nat.c index bb78d7288d..d273cabeeb 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. */ -- 2.34.1