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:
Stephen Wilson 2011-01-07 00:10:43 +00:00
parent 61c5708b51
commit 6c0cece252
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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;