diff options
Diffstat (limited to 'base/logging.cc')
-rw-r--r-- | base/logging.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/logging.cc b/base/logging.cc index 8d1c8f8..d30b219 100644 --- a/base/logging.cc +++ b/base/logging.cc @@ -790,6 +790,10 @@ Win32ErrorLogMessage::~Win32ErrorLogMessage() { stream() << ": Error " << GetLastError() << " while retrieving error " << err_; } + // We're about to crash (CHECK). Put |err_| on the stack (by placing it in a + // field) and use Alias in hopes that it makes it into crash dumps. + DWORD last_error = err_; + base::debug::Alias(&last_error); } #elif defined(OS_POSIX) ErrnoLogMessage::ErrnoLogMessage(const char* file, |