forked from OSchip/llvm-project
[lldb] Fix windows&freebsd builds for c0b1af68
This commit is contained in:
parent
57f70d1877
commit
24b1831ebf
|
@ -26,7 +26,6 @@
|
|||
#include "Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.h"
|
||||
#include "Plugins/Process/Utility/RegisterInfoPOSIX_arm.h"
|
||||
#include "Plugins/Process/Utility/RegisterInfoPOSIX_arm64.h"
|
||||
#include "Plugins/Process/Utility/UnwindLLDB.h"
|
||||
#include "ProcessFreeBSD.h"
|
||||
#include "ProcessMonitor.h"
|
||||
#include "RegisterContextPOSIXProcessMonitor_arm.h"
|
||||
|
@ -254,8 +253,7 @@ FreeBSDThread::CreateRegisterContextForFrame(lldb_private::StackFrame *frame) {
|
|||
if (concrete_frame_idx == 0)
|
||||
reg_ctx_sp = GetRegisterContext();
|
||||
else {
|
||||
assert(GetUnwinder());
|
||||
reg_ctx_sp = GetUnwinder()->CreateRegisterContextForFrame(frame);
|
||||
reg_ctx_sp = GetUnwinder().CreateRegisterContextForFrame(frame);
|
||||
}
|
||||
|
||||
return reg_ctx_sp;
|
||||
|
@ -275,13 +273,6 @@ bool FreeBSDThread::CalculateStopInfo() {
|
|||
return true;
|
||||
}
|
||||
|
||||
Unwind *FreeBSDThread::GetUnwinder() {
|
||||
if (!m_unwinder_up)
|
||||
m_unwinder_up.reset(new UnwindLLDB(*this));
|
||||
|
||||
return m_unwinder_up.get();
|
||||
}
|
||||
|
||||
void FreeBSDThread::DidStop() {
|
||||
// Don't set the thread state to stopped unless we really stopped.
|
||||
}
|
||||
|
|
|
@ -102,8 +102,6 @@ protected:
|
|||
void ExitNotify(const ProcessMessage &message);
|
||||
void ExecNotify(const ProcessMessage &message);
|
||||
|
||||
lldb_private::Unwind *GetUnwinder() override;
|
||||
|
||||
// FreeBSDThread internal API.
|
||||
|
||||
// POSIXThread override
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "lldb/Utility/Logging.h"
|
||||
#include "lldb/Utility/State.h"
|
||||
|
||||
#include "Plugins/Process/Utility/UnwindLLDB.h"
|
||||
#include "ProcessWindows.h"
|
||||
#include "ProcessWindowsLog.h"
|
||||
#include "TargetThreadWindows.h"
|
||||
|
@ -113,9 +112,7 @@ TargetThreadWindows::CreateRegisterContextForFrame(StackFrame *frame) {
|
|||
}
|
||||
reg_ctx_sp = m_thread_reg_ctx_sp;
|
||||
} else {
|
||||
Unwind *unwinder = GetUnwinder();
|
||||
if (unwinder != nullptr)
|
||||
reg_ctx_sp = unwinder->CreateRegisterContextForFrame(frame);
|
||||
reg_ctx_sp = GetUnwinder().CreateRegisterContextForFrame(frame);
|
||||
}
|
||||
|
||||
return reg_ctx_sp;
|
||||
|
@ -126,14 +123,6 @@ bool TargetThreadWindows::CalculateStopInfo() {
|
|||
return true;
|
||||
}
|
||||
|
||||
Unwind *TargetThreadWindows::GetUnwinder() {
|
||||
// FIXME: Implement an unwinder based on the Windows unwinder exposed through
|
||||
// DIA SDK.
|
||||
if (!m_unwinder_up)
|
||||
m_unwinder_up.reset(new UnwindLLDB(*this));
|
||||
return m_unwinder_up.get();
|
||||
}
|
||||
|
||||
Status TargetThreadWindows::DoResume() {
|
||||
StateType resume_state = GetTemporaryResumeState();
|
||||
StateType current_state = GetState();
|
||||
|
|
|
@ -34,7 +34,6 @@ public:
|
|||
lldb::RegisterContextSP
|
||||
CreateRegisterContextForFrame(StackFrame *frame) override;
|
||||
bool CalculateStopInfo() override;
|
||||
Unwind *GetUnwinder() override;
|
||||
|
||||
Status DoResume();
|
||||
|
||||
|
|
Loading…
Reference in New Issue