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

Side by Side Diff: base/debug_util.h

Issue 272025: Trim the list of signals used by debug_util::DisableOSCrashDumps() on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/debug_util_mac.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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is a cross platform interface for helper functions related to debuggers. 5 // This is a cross platform interface for helper functions related to debuggers.
6 // You should use this to test if you're running under a debugger, and if you 6 // You should use this to test if you're running under a debugger, and if you
7 // would like to yield (breakpoint) into the debugger. 7 // would like to yield (breakpoint) into the debugger.
8 8
9 #ifndef BASE_DEBUG_UTIL_H_ 9 #ifndef BASE_DEBUG_UTIL_H_
10 #define BASE_DEBUG_UTIL_H_ 10 #define BASE_DEBUG_UTIL_H_
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // On OS X, the underlying mechanism doesn't work when the sandbox is enabled. 68 // On OS X, the underlying mechanism doesn't work when the sandbox is enabled.
69 // To get around this, this function caches its value. 69 // To get around this, this function caches its value.
70 // WARNING: Because of this, on OS X, a call MUST be made to this function 70 // WARNING: Because of this, on OS X, a call MUST be made to this function
71 // BEFORE the sandbox is enabled. 71 // BEFORE the sandbox is enabled.
72 static bool BeingDebugged(); 72 static bool BeingDebugged();
73 73
74 // Break into the debugger, assumes a debugger is present. 74 // Break into the debugger, assumes a debugger is present.
75 static void BreakDebugger(); 75 static void BreakDebugger();
76 76
77 #if defined(OS_MACOSX) 77 #if defined(OS_MACOSX)
78 // On OS X, it can take a really long time for the OS Crash handler to 78 // On Mac OS X, it can take a really long time for the OS crash handler to
79 // process a Chrome crash. This translates into a long wait till the process 79 // process a Chrome crash when debugging symbols are available. This
80 // actually dies. 80 // translates into a long wait until the process actually dies. This call
81 // This method disables OS Crash reporting entireley. 81 // disables Apple Crash Reporter entirely.
82 // TODO(playmobil): Remove this when we have Breakpad integration enabled -
83 // see http://crbug.com/7652
84 static void DisableOSCrashDumps(); 82 static void DisableOSCrashDumps();
85 #endif // defined(OS_MACOSX) 83 #endif // defined(OS_MACOSX)
86 }; 84 };
87 85
88 #endif // BASE_DEBUG_UTIL_H_ 86 #endif // BASE_DEBUG_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/debug_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698