| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |