* exceptions.cc (handle_exceptions): Search further for stack info to

accomodate Windows 95.
This commit is contained in:
Christopher Faylor 2000-04-20 21:33:58 +00:00
parent db64ab89f0
commit 60bebb0318
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 20 17:32:42 2000 Christopher Faylor <cgf@cygnus.com>
* exceptions.cc (handle_exceptions): Search further for stack info to
accomodate Windows 95.
Thu Apr 20 16:39:18 2000 Christopher Faylor <cgf@cygnus.com> Thu Apr 20 16:39:18 2000 Christopher Faylor <cgf@cygnus.com>
* path.cc (normalize_posix_path): Previous change failed to take root * path.cc (normalize_posix_path): Previous change failed to take root

View File

@ -497,7 +497,7 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *)
myself->getsig(sig).sa_handler); myself->getsig(sig).sa_handler);
DWORD *ebp = (DWORD *)in->Esp; DWORD *ebp = (DWORD *)in->Esp;
for (DWORD *bpend = ebp - 8; ebp > bpend; ebp--) for (DWORD *bpend = ebp - 16; ebp > bpend; ebp--)
if (*ebp == in->SegCs && ebp[-1] == in->Eip) if (*ebp == in->SegCs && ebp[-1] == in->Eip)
{ {
ebp -= 2; ebp -= 2;