From 360c1aa10572e51eb69014f76d3cb0c7c3b78dd5 Mon Sep 17 00:00:00 2001 From: corinna Date: Tue, 27 Dec 2005 20:20:09 +0000 Subject: [PATCH] * exceptions.cc (inside_kernel): Rename from interruptible. Accommodate change throughout file. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/exceptions.cc | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d9166a652d..82e9ba5213 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2005-12-27 Corinna Vinschen + * exceptions.cc (inside_kernel): Rename from interruptible. + Accommodate change throughout file. + +2005-12-27 Corinna Vinschen + * exceptions.cc (interruptible): New function, code stripped from _cygtls::interrupt_now. (_cygtls::handle_exceptions): Handle STATUS_DATATYPE_MISALIGNMENT as diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index cca7457642..e13f6fa547 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -287,7 +287,7 @@ stackdump (DWORD ebp, int open_file, bool isexception) } static bool -interruptible (CONTEXT *cx) +inside_kernel (CONTEXT *cx) { int res; MEMORY_BASIC_INFORMATION m; @@ -620,7 +620,7 @@ _cygtls::handle_exceptions (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT error_code |= 1; if (e->ExceptionInformation[0]) /* Write access */ error_code |= 2; - if (!interruptible (in)) /* User space */ + if (!inside_kernel (in)) /* User space */ error_code |= 4; klog (LOG_INFO, "%s[%d]: segfault at %08x rip %08x rsp %08x error %d", __progname, myself->pid, @@ -725,7 +725,7 @@ _cygtls::interrupt_now (CONTEXT *cx, int sig, void *handler, { bool interrupted; - if (!interruptible (cx) || (incyg || spinning || locked ())) + if (!inside_kernel (cx) || (incyg || spinning || locked ())) interrupted = false; else { -- 2.11.0