OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Define the necessary code and global data to look for kDebugOnStart command | 5 // Define the necessary code and global data to look for kDebugOnStart command |
6 // line argument. When the command line argument is detected, it invokes the | 6 // line argument. When the command line argument is detected, it invokes the |
7 // debugger, if no system-wide debugger is registered, a debug break is done. | 7 // debugger, if no system-wide debugger is registered, a debug break is done. |
8 | 8 |
9 #ifndef BASE_DEBUG_ON_START_H_ | 9 #ifndef BASE_DEBUG_ON_START_H_ |
10 #define BASE_DEBUG_ON_START_H_ | 10 #define BASE_DEBUG_ON_START_H_ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #pragma data_seg(push, ".CRT$XIB") | 58 #pragma data_seg(push, ".CRT$XIB") |
59 // Declare the pointer so the CRT will find it. | 59 // Declare the pointer so the CRT will find it. |
60 DECLSPEC_SELECTANY DebugOnStart::PIFV debug_on_start = &DebugOnStart::Init; | 60 DECLSPEC_SELECTANY DebugOnStart::PIFV debug_on_start = &DebugOnStart::Init; |
61 // Fix back the segment. | 61 // Fix back the segment. |
62 #pragma data_seg(pop) | 62 #pragma data_seg(pop) |
63 | 63 |
64 #endif // _WIN64 | 64 #endif // _WIN64 |
65 #endif // defined(OS_WIN) | 65 #endif // defined(OS_WIN) |
66 | 66 |
67 #endif // BASE_DEBUG_ON_START_H_ | 67 #endif // BASE_DEBUG_ON_START_H_ |
68 | |
OLD | NEW |