summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-05-07 21:39:33 +0000
committerZachary Turner <zturner@google.com>2015-05-07 21:39:33 +0000
commit610e52912d31341d989ac21ff3d7380c513e0897 (patch)
tree73ad618c432219ab3399f87fae15eddb4e6e2188 /lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp
parentd04893fa36ff1bae396acfd064cbfceaf135527d (diff)
downloadbcm5719-llvm-610e52912d31341d989ac21ff3d7380c513e0897.tar.gz
bcm5719-llvm-610e52912d31341d989ac21ff3d7380c513e0897.zip
Add logging to ProcessWindows.
llvm-svn: 236776
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp')
-rw-r--r--lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp b/lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp
index 1a025c221bb..d61675f09b1 100644
--- a/lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp
+++ b/lldb/source/Plugins/Process/Windows/RegisterContextWindows.cpp
@@ -13,6 +13,7 @@
#include "lldb/Host/windows/HostThreadWindows.h"
#include "lldb/Host/windows/windows.h"
+#include "ProcessWindowsLog.h"
#include "RegisterContextWindows.h"
#include "TargetThreadWindows.h"
@@ -143,7 +144,12 @@ RegisterContextWindows::CacheAllRegisterValues()
memset(&m_context, 0, sizeof(m_context));
m_context.ContextFlags = kWinContextFlags;
if (!::GetThreadContext(wthread.GetHostThread().GetNativeThread().GetSystemHandle(), &m_context))
+ {
+ WINERR_IFALL(WINDOWS_LOG_REGISTERS, "GetThreadContext failed with error %u while caching register values.",
+ ::GetLastError());
return false;
+ }
+ WINLOG_IFALL(WINDOWS_LOG_REGISTERS, "GetThreadContext successfully updated the register values.", ::GetLastError());
m_context_stale = false;
return true;
}
OpenPOWER on IntegriCloud