aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_windows.go
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2014-10-15 11:11:11 +1100
committerAlex Brainman <alex.brainman@gmail.com>2014-10-15 11:11:11 +1100
commite9ecd4aec51f06cb0834fe3bbd8c4b88d5fd94b5 (patch)
treebe828615f1dbf7cf319e19f7450108aa4e40ee06 /src/runtime/defs_windows.go
parent96d1e4ab5938d263457a9c18fdf6fdf0581c6ec6 (diff)
downloadgo-e9ecd4aec51f06cb0834fe3bbd8c4b88d5fd94b5.tar.xz
runtime: handle all windows exception (second attempt)
includes undo of 22318cd31d7d and also: - always use SetUnhandledExceptionFilter on windows-386; - crash when receive EXCEPTION_BREAKPOINT in exception handler. Fixes #8006. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/155360043
Diffstat (limited to 'src/runtime/defs_windows.go')
-rw-r--r--src/runtime/defs_windows.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/defs_windows.go b/src/runtime/defs_windows.go
index cb0f54d8ab..7ce6797414 100644
--- a/src/runtime/defs_windows.go
+++ b/src/runtime/defs_windows.go
@@ -49,6 +49,7 @@ const (
CONTEXT_FULL = C.CONTEXT_FULL
EXCEPTION_ACCESS_VIOLATION = C.STATUS_ACCESS_VIOLATION
+ EXCEPTION_BREAKPOINT = C.STATUS_BREAKPOINT
EXCEPTION_FLT_DENORMAL_OPERAND = C.STATUS_FLOAT_DENORMAL_OPERAND
EXCEPTION_FLT_DIVIDE_BY_ZERO = C.STATUS_FLOAT_DIVIDE_BY_ZERO
EXCEPTION_FLT_INEXACT_RESULT = C.STATUS_FLOAT_INEXACT_RESULT
@@ -59,6 +60,9 @@ const (
INFINITE = C.INFINITE
WAIT_TIMEOUT = C.WAIT_TIMEOUT
+
+ EXCEPTION_CONTINUE_EXECUTION = C.EXCEPTION_CONTINUE_EXECUTION
+ EXCEPTION_CONTINUE_SEARCH = C.EXCEPTION_CONTINUE_SEARCH
)
type SystemInfo C.SYSTEM_INFO