* exceptions.cc (exception::handle): Use error_code in klog, as intended.
Found by Clang.
This commit is contained in:
		| @@ -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> | 2012-07-02  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* fhandler.h (class fhandler_dev_clipboard): Remove member eof. | 	* fhandler.h (class fhandler_dev_clipboard): Remove member eof. | ||||||
|   | |||||||
| @@ -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", | 	  klog (LOG_INFO, "%s[%d]: segfault at %08x rip %08x rsp %08x error %d", | ||||||
| 			  __progname, myself->pid, | 			  __progname, myself->pid, | ||||||
| 			  e->ExceptionInformation[1], in->Eip, in->Esp, | 			  e->ExceptionInformation[1], in->Eip, in->Esp, | ||||||
| 			  ((in->Eip >= 0x61000000 && in->Eip < 0x61200000) | 			  error_code); | ||||||
| 			   ? 0 : 4) | (e->ExceptionInformation[0] << 1)); |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|       /* Flag signal + core dump */ |       /* Flag signal + core dump */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user