* exceptions.cc (exception::handle): Use error_code in klog, as intended.

Found by Clang.
This commit is contained in:
Christopher Faylor 2012-07-03 05:31:11 +00:00
parent 8fd8f9e72b
commit 51e4c3d44c
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-07-02 Christopher Faylor <me.cygwin2012@cgf.cx>
* exceptions.cc (exception::handle): Use error_code in klog, as
intended. Found by Clang.
2012-07-02 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (class fhandler_dev_clipboard): Remove member eof.

View File

@ -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 */