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

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: 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') | src/processor/minidump_processor.cc » ('J')
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. */
Mark Mentovai 2016/07/19 20:30:50 Wondering how you picked this. Is it a known user-
Will Harris 2016/07/19 21:30:35 see new comment in base/process/memory.h
103 MD_EXCEPTION_CODE_WIN_UNHANDLED_CPP_EXCEPTION = 0xe06d7363 105 MD_EXCEPTION_CODE_WIN_UNHANDLED_CPP_EXCEPTION = 0xe06d7363
104 /* Per http://support.microsoft.com/kb/185294, 106 /* Per http://support.microsoft.com/kb/185294,
105 generated by Visual C++ compiler */ 107 generated by Visual C++ compiler */
106 } MDExceptionCodeWin; 108 } MDExceptionCodeWin;
107 109
108 110
109 /* For (MDException).exception_information[2], when (MDException).exception_code 111 /* For (MDException).exception_information[2], when (MDException).exception_code
110 * is MD_EXCEPTION_CODE_WIN_IN_PAGE_ERROR. This describes the underlying reason 112 * is MD_EXCEPTION_CODE_WIN_IN_PAGE_ERROR. This describes the underlying reason
111 * for the error. These values come from ntstatus.h. 113 * for the error. These values come from ntstatus.h.
112 * 114 *
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 2254
2253 // These constants are defined in the MSDN documentation of 2255 // These constants are defined in the MSDN documentation of
2254 // the EXCEPTION_RECORD structure. 2256 // the EXCEPTION_RECORD structure.
2255 typedef enum { 2257 typedef enum {
2256 MD_IN_PAGE_ERROR_WIN_READ = 0, 2258 MD_IN_PAGE_ERROR_WIN_READ = 0,
2257 MD_IN_PAGE_ERROR_WIN_WRITE = 1, 2259 MD_IN_PAGE_ERROR_WIN_WRITE = 1,
2258 MD_IN_PAGE_ERROR_WIN_EXEC = 8 2260 MD_IN_PAGE_ERROR_WIN_EXEC = 8
2259 } MDInPageErrorTypeWin; 2261 } MDInPageErrorTypeWin;
2260 2262
2261 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_WIN32_H__ */ 2263 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_WIN32_H__ */
OLDNEW
« no previous file with comments | « no previous file | src/processor/minidump_processor.cc » ('j') | src/processor/minidump_processor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698