Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: src/google_breakpad/common/minidump_exception_win32.h

Issue 2160373002: Add new exception code for OOM generated from Chromium. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: add comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/processor/minidump_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2006, Google Inc. 1 /* Copyright (c) 2006, Google Inc.
2 * All rights reserved. 2 * All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 MD_EXCEPTION_CODE_WIN_PRIVILEGED_INSTRUCTION = 0xc0000096, 93 MD_EXCEPTION_CODE_WIN_PRIVILEGED_INSTRUCTION = 0xc0000096,
94 /* EXCEPTION_PRIV_INSTRUCTION */ 94 /* EXCEPTION_PRIV_INSTRUCTION */
95 MD_EXCEPTION_CODE_WIN_STACK_OVERFLOW = 0xc00000fd, 95 MD_EXCEPTION_CODE_WIN_STACK_OVERFLOW = 0xc00000fd,
96 /* EXCEPTION_STACK_OVERFLOW */ 96 /* EXCEPTION_STACK_OVERFLOW */
97 MD_EXCEPTION_CODE_WIN_POSSIBLE_DEADLOCK = 0xc0000194, 97 MD_EXCEPTION_CODE_WIN_POSSIBLE_DEADLOCK = 0xc0000194,
98 /* EXCEPTION_POSSIBLE_DEADLOCK */ 98 /* EXCEPTION_POSSIBLE_DEADLOCK */
99 MD_EXCEPTION_CODE_WIN_STACK_BUFFER_OVERRUN = 0xc0000409, 99 MD_EXCEPTION_CODE_WIN_STACK_BUFFER_OVERRUN = 0xc0000409,
100 /* STATUS_STACK_BUFFER_OVERRUN */ 100 /* STATUS_STACK_BUFFER_OVERRUN */
101 MD_EXCEPTION_CODE_WIN_HEAP_CORRUPTION = 0xc0000374, 101 MD_EXCEPTION_CODE_WIN_HEAP_CORRUPTION = 0xc0000374,
102 /* STATUS_HEAP_CORRUPTION */ 102 /* STATUS_HEAP_CORRUPTION */
103 MD_EXCEPTION_OUT_OF_MEMORY = 0xe0000008,
104 /* Exception thrown by Chromium allocators to indicate OOM.
105 See base/process/memory.h in Chromium for rationale. */
103 MD_EXCEPTION_CODE_WIN_UNHANDLED_CPP_EXCEPTION = 0xe06d7363 106 MD_EXCEPTION_CODE_WIN_UNHANDLED_CPP_EXCEPTION = 0xe06d7363
104 /* Per http://support.microsoft.com/kb/185294, 107 /* Per http://support.microsoft.com/kb/185294,
105 generated by Visual C++ compiler */ 108 generated by Visual C++ compiler */
106 } MDExceptionCodeWin; 109 } MDExceptionCodeWin;
107 110
108 111
109 /* For (MDException).exception_information[2], when (MDException).exception_code 112 /* For (MDException).exception_information[2], when (MDException).exception_code
110 * is MD_EXCEPTION_CODE_WIN_IN_PAGE_ERROR. This describes the underlying reason 113 * is MD_EXCEPTION_CODE_WIN_IN_PAGE_ERROR. This describes the underlying reason
111 * for the error. These values come from ntstatus.h. 114 * for the error. These values come from ntstatus.h.
112 * 115 *
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 2255
2253 // These constants are defined in the MSDN documentation of 2256 // These constants are defined in the MSDN documentation of
2254 // the EXCEPTION_RECORD structure. 2257 // the EXCEPTION_RECORD structure.
2255 typedef enum { 2258 typedef enum {
2256 MD_IN_PAGE_ERROR_WIN_READ = 0, 2259 MD_IN_PAGE_ERROR_WIN_READ = 0,
2257 MD_IN_PAGE_ERROR_WIN_WRITE = 1, 2260 MD_IN_PAGE_ERROR_WIN_WRITE = 1,
2258 MD_IN_PAGE_ERROR_WIN_EXEC = 8 2261 MD_IN_PAGE_ERROR_WIN_EXEC = 8
2259 } MDInPageErrorTypeWin; 2262 } MDInPageErrorTypeWin;
2260 2263
2261 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_WIN32_H__ */ 2264 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_WIN32_H__ */
OLDNEW
« no previous file with comments | « no previous file | src/processor/minidump_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698