Fix a few small issues in r122981 to ensure compilation on Linux.
Also, call GetProcess instead of CalculateProcess as the latter is morally part of the ExecutionContextScope API. llvm-svn: 122984
This commit is contained in:
parent
61c5708b51
commit
6c0cece252
|
@ -33,8 +33,8 @@ LinuxThread::LinuxThread(Process &process, lldb::tid_t tid)
|
|||
ProcessMonitor &
|
||||
LinuxThread::GetMonitor()
|
||||
{
|
||||
ProcessLinux *process = static_cast<ProcessLinux*>(CalculateProcess());
|
||||
return process->GetMonitor();
|
||||
ProcessLinux &process = static_cast<ProcessLinux&>(GetProcess());
|
||||
return process.GetMonitor();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -51,6 +51,8 @@ LinuxThread::GetInfo()
|
|||
lldb::RegisterContextSP
|
||||
LinuxThread::GetRegisterContext()
|
||||
{
|
||||
ProcessLinux &process = static_cast<ProcessLinux&>(GetProcess());
|
||||
|
||||
if (!m_reg_context_sp)
|
||||
{
|
||||
ArchSpec arch = process.GetTarget().GetArchitecture();
|
||||
|
@ -66,7 +68,7 @@ LinuxThread::GetRegisterContext()
|
|||
break;
|
||||
}
|
||||
}
|
||||
return m_reg_context_sp
|
||||
return m_reg_context_sp;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
RestoreSaveFrameZero(const RegisterCheckpoint &checkpoint);
|
||||
|
||||
virtual lldb::RegisterContextSP
|
||||
CreateRegisterContextForFrame (StackFrame *frame);
|
||||
CreateRegisterContextForFrame (lldb_private::StackFrame *frame);
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// These methods form a specialized interface to linux threads.
|
||||
|
@ -66,7 +66,7 @@ private:
|
|||
{
|
||||
if (!m_reg_context_sp)
|
||||
GetRegisterContext();
|
||||
return (RegisterContextLinux *)m_reg_context_sp.get()
|
||||
return (RegisterContextLinux *)m_reg_context_sp.get();
|
||||
}
|
||||
|
||||
std::auto_ptr<lldb_private::StackFrame> m_frame_ap;
|
||||
|
|
Loading…
Reference in New Issue