diff options
author | Christopher Faylor <me@cgf.cx> | 2012-07-03 09:31:11 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-07-03 09:31:11 +0400 |
commit | 51e4c3d44ca11464b2fa65f5c7ca70b2fcd8c653 (patch) | |
tree | 59e4a03b81d12f9dfd88eebf861bc4c2ed440fd6 /winsup/cygwin/exceptions.cc | |
parent | 8fd8f9e72b5732296f54c3dda3fe90d9e0d813e2 (diff) |
* exceptions.cc (exception::handle): Use error_code in klog, as intended.
Found by Clang.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 833fa4f42..332a40610 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -676,8 +676,7 @@ exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in, void klog (LOG_INFO, "%s[%d]: segfault at %08x rip %08x rsp %08x error %d", __progname, myself->pid, e->ExceptionInformation[1], in->Eip, in->Esp, - ((in->Eip >= 0x61000000 && in->Eip < 0x61200000) - ? 0 : 4) | (e->ExceptionInformation[0] << 1)); + error_code); } /* Flag signal + core dump */ |