diff options
author | Eric Holk <eholk@chromium.org> | 2017-06-19 10:06:28 -0700 |
---|---|---|
committer | Mark Mentovai <mark@chromium.org> | 2017-06-19 18:23:41 +0000 |
commit | 1628d99f7b21b6920ac8bf197b2acd38021f1df9 (patch) | |
tree | 2f20240353ae3028cfe6f83f7d90bddf854a2dbb /src/client/linux/handler/exception_handler.h | |
parent | roll lss deps (diff) | |
download | breakpad-1628d99f7b21b6920ac8bf197b2acd38021f1df9.tar.xz |
Add first chance exception handler API
This change adds the option for Breakpad hosts to register a callback
that gets the first chance to handle an exception. The handler will
return true if it handled the exception and false otherwise.
The primary use case is V8's trap-based bounds checking support for
WebAssembly.
Bug:
Change-Id: I5aa5b87d1229f1cef905a00404fa2027ee86be56
Reviewed-on: https://chromium-review.googlesource.com/509994
Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/client/linux/handler/exception_handler.h')
-rw-r--r-- | src/client/linux/handler/exception_handler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/linux/handler/exception_handler.h b/src/client/linux/handler/exception_handler.h index 591c3108..daba57e0 100644 --- a/src/client/linux/handler/exception_handler.h +++ b/src/client/linux/handler/exception_handler.h @@ -273,6 +273,10 @@ class ExceptionHandler { AppMemoryList app_memory_list_; }; + +typedef bool (*FirstChanceHandler)(int, void*, void*); +void SetFirstChanceExceptionHandler(FirstChanceHandler callback); + } // namespace google_breakpad #endif // CLIENT_LINUX_HANDLER_EXCEPTION_HANDLER_H_ |