| //===-- RegisterContextWindowsMiniDump_x64.cpp ------------------*- C++ -*-===// |
| // |
| // The LLVM Compiler Infrastructure |
| // |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| // |
| //===----------------------------------------------------------------------===// |
| |
| #include "lldb/lldb-private-types.h" |
| #include "lldb/Host/windows/windows.h" |
| |
| #include "RegisterContextWindowsMiniDump_x64.h" |
| |
| using namespace lldb; |
| |
| namespace lldb_private |
| { |
| |
| RegisterContextWindowsMiniDump_x64::RegisterContextWindowsMiniDump_x64(Thread &thread, uint32_t concrete_frame_idx, const CONTEXT *context) |
| : RegisterContextWindows_x64(thread, concrete_frame_idx) |
| { |
| if (context) |
| { |
| m_context = *context; |
| m_context_stale = false; |
| } |
| } |
| |
| RegisterContextWindowsMiniDump_x64::~RegisterContextWindowsMiniDump_x64() |
| { |
| } |
| |
| bool |
| RegisterContextWindowsMiniDump_x64::WriteRegister(const RegisterInfo * /* reg_info */, const RegisterValue & /* reg_value */) |
| { |
| return false; |
| } |
| |
| bool |
| RegisterContextWindowsMiniDump_x64::CacheAllRegisterValues() |
| { |
| // Since this is post-mortem debugging, we either have the context or we don't. |
| return !m_context_stale; |
| } |
| |
| } // namespace lldb_private |