Chromium Code Reviews| Index: chrome/app/breakpad_win.cc |
| =================================================================== |
| --- chrome/app/breakpad_win.cc (revision 78053) |
| +++ chrome/app/breakpad_win.cc (working copy) |
| @@ -438,6 +438,18 @@ |
| flags, exit_now); |
| } |
| +// Crashes the process after generating a dump for the provided exception. Note |
| +// that the crash reporter should be initialized before calling this function |
| +// for it to do anything. |
|
cpu_(ooo_6.6-7.5)
2011/03/16 00:09:22
should it be:
__declspec(dllexport) int __cdecl Cr
rvargas (doing something else)
2011/03/16 00:25:07
Extern "C" is fine.
On 2011/03/16 00:09:22, cpu w
|
| +extern "C" int __declspec(dllexport) CrashForException( |
| + EXCEPTION_POINTERS* info) { |
| + if (g_breakpad) { |
| + g_breakpad->WriteMinidumpForException(info); |
| + ::ExitProcess(ResultCodes::KILLED); |
| + } |
| + return EXCEPTION_CONTINUE_SEARCH; |
| +} |
| + |
| // Determine whether configuration management allows loading the crash reporter. |
| // Since the configuration management infrastructure is not initialized at this |
| // point, we read the corresponding registry key directly. The return status |