OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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_BREAKPAD_H_ |
| 6 #define CHROME_ELF_BREAKPAD_H_ |
| 7 |
| 8 #include <windows.h> |
| 9 |
| 10 #include "breakpad/src/client/windows/handler/exception_handler.h" |
| 11 |
| 12 // Initializes collection and upload of crash reports. The caller has to ensure |
| 13 // that the user has agreed to crash dump reporting. |
| 14 // |
| 15 // Crash reporting has to be initialized as early as possible (e.g. the first |
| 16 // thing in main()) to catch crashes occuring during process startup. |
| 17 // Crashes which occur during the global static construction phase will not |
| 18 // be caught and reported. This should not be a problem as static non-POD |
| 19 // objects are not allowed by the style guide and exceptions to this rule are |
| 20 // rare. |
| 21 void InitializeCrashReporting(); |
| 22 |
| 23 // Generates a crashdump for the provided |exinfo|. This crashdump will be |
| 24 // either be saved locally, or uploaded, depending on how the ExceptionHandler |
| 25 // has been configured. |
| 26 int GenerateCrashDump(EXCEPTION_POINTERS* exinfo); |
| 27 |
| 28 // Global pointer to the ExceptionHandler. This is initialized by |
| 29 // InitializeCrashReporting() and used by GenerateCrashDump() to record dumps. |
| 30 extern google_breakpad::ExceptionHandler* g_elf_breakpad; |
| 31 |
| 32 #endif // CHROME_ELF_BREAKPAD_H_ |
OLD | NEW |