From b72a5c0767780b0280e145c8ad686e007fbea0a5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 19 Oct 2005 00:22:08 +0000 Subject: * cygtls.cc (handle_threadlist_exception): Improve diagnostic output. * sigproc.cc (child_info::sync): Only clear hProcess when execing. (wait_sig): Protect readsig handle. --- winsup/cygwin/cygtls.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'winsup/cygwin/cygtls.cc') diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index 3b3e86ae2..579e981f2 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -241,26 +241,24 @@ _cygtls::set_siginfo (sigpacket *pack) extern "C" DWORD __stdcall RtlUnwind (void *, void *, void *, DWORD); static int -handle_threadlist_exception (EXCEPTION_RECORD *e, void *frame, CONTEXT *, void *) +handle_threadlist_exception (EXCEPTION_RECORD *e, void *frame, CONTEXT *c, void *) { if (e->ExceptionCode != STATUS_ACCESS_VIOLATION) { - system_printf ("handle_threadlist_exception called with exception code %d\n", - e->ExceptionCode); + system_printf ("unhandled exception %p at %p", e->ExceptionCode, c->Eip); return 1; } sentry here; if (threadlist_ix == BAD_IX) { - system_printf ("handle_threadlist_exception called with threadlist_ix %d\n", - BAD_IX); + system_printf ("called with threadlist_ix %d", BAD_IX); return 1; } if (!here.acquired ()) { - system_printf ("handle_threadlist_exception couldn't aquire muto\n"); + system_printf ("couldn't aquire muto"); return 1; } -- cgit v1.2.3