diff options
-rw-r--r-- | base/debug_util_win.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/base/debug_util_win.cc b/base/debug_util_win.cc index 3a7decd..08bfb41 100644 --- a/base/debug_util_win.cc +++ b/base/debug_util_win.cc @@ -164,8 +164,13 @@ class SymbolContext { if (SymInitialize(GetCurrentProcess(), NULL, TRUE)) { init_error_ = ERROR_SUCCESS; } else { - __debugbreak(); init_error_ = GetLastError(); + // TODO(awong): Handle error: SymInitialize can fail with + // ERROR_INVALID_PARAMETER. + // When it fails, we should not call debugbreak since it kills the current + // process (prevents future tests from running or kills the browser + // process). + DLOG(ERROR) << "SymInitialize failed: " << init_error_; } } |