aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows/handler/exception_handler.h
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-10-18 20:54:20 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-10-18 20:54:20 +0000
commitf4021f0c68b680e1b2a1fc027e81a54c700dd245 (patch)
treec76d9a3d388a67db676e8dea54269c675e63baeb /src/client/windows/handler/exception_handler.h
parentRemove assertion for a variable that doesn't exist. Patch by Alfred Peng (diff)
downloadbreakpad-f4021f0c68b680e1b2a1fc027e81a54c700dd245.tar.xz
Make Breakpad's debug-exception-ignoring configurable. r=Nicolas Sylvain
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@224 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/windows/handler/exception_handler.h')
-rw-r--r--src/client/windows/handler/exception_handler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/windows/handler/exception_handler.h b/src/client/windows/handler/exception_handler.h
index 433b6bf4..7d82564c 100644
--- a/src/client/windows/handler/exception_handler.h
+++ b/src/client/windows/handler/exception_handler.h
@@ -175,6 +175,12 @@ class ExceptionHandler {
// dumps.
DWORD get_requesting_thread_id() const { return requesting_thread_id_; }
+ // Controls behavior of EXCEPTION_BREAKPOINT and EXCEPTION_SINGLE_STEP.
+ bool get_handle_debug_exceptions() const { return handle_debug_exceptions_; }
+ void set_handle_debug_exceptions(bool handle_debug_exceptions) {
+ handle_debug_exceptions_ = handle_debug_exceptions;
+ }
+
private:
friend class AutoExceptionHandler;
@@ -322,6 +328,11 @@ class ExceptionHandler {
// the requesting thread.
bool handler_return_value_;
+ // If true, the handler will intercept EXCEPTION_BREAKPOINT and
+ // EXCEPTION_SINGLE_STEP exceptions. Leave this false (the default)
+ // to not interfere with debuggers.
+ bool handle_debug_exceptions_;
+
// A stack of ExceptionHandler objects that have installed unhandled
// exception filters. This vector is used by HandleException to determine
// which ExceptionHandler object to route an exception to. When an