OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_ELF_CRASH_CRASH_HELPER_H_ |
| 6 #define CHROME_ELF_CRASH_CRASH_HELPER_H_ |
| 7 |
| 8 #include <windows.h> |
| 9 |
| 10 // Keep all crash-related APIs here. All other chrome_elf code should call here |
| 11 // for crash support. |
| 12 namespace elf_crash { |
| 13 |
| 14 // Init the crash handling system for entire process. |
| 15 bool InitializeCrashReporting(); |
| 16 |
| 17 // Any late cleanup of the crash handling system. |
| 18 void ShutdownCrashReporting(); |
| 19 |
| 20 // Permanently disables subsequent calls to |
| 21 // kernel32!SetUnhandledExceptionFilter(), see comment in .cc for why this is |
| 22 // needed. |
| 23 void DisableSetUnhandledExceptionFilter(); |
| 24 |
| 25 // Exception handler for exceptions in chrome_elf which need to be passed on to |
| 26 // the next handler in the chain. Examples include exceptions in DllMain, |
| 27 // blacklist interception code, etc. |
| 28 // Note: the handler takes a minidump. |
| 29 int GenerateCrashDump(EXCEPTION_POINTERS* exception_pointers); |
| 30 } |
| 31 |
| 32 #endif // CHROME_ELF_CRASH_CRASH_HELPER_H_ |
OLD | NEW |