Make the unwinding of the stack part of "thread return" work, and add the thread return command.

llvm-svn: 163867
This commit is contained in:
Jim Ingham
2012-09-14 02:14:15 +00:00
parent 00755e9554
commit cb640dd8a0
8 changed files with 167 additions and 15 deletions

View File

@@ -103,7 +103,7 @@ public:
RunToAddress (lldb::addr_t addr);
SBError
ReturnToFrame (SBFrame &frame, SBValue &return_value);
ReturnFromFrame (SBFrame &frame, SBValue &return_value);
//--------------------------------------------------------------------------
/// LLDB currently supports process centric debugging which means when any

View File

@@ -72,6 +72,9 @@ public:
virtual bool
WriteAllRegisterValues (const lldb::DataBufferSP &data_sp) = 0;
bool
CopyFromRegisterContext (lldb::RegisterContextSP context);
virtual uint32_t
ConvertRegisterKindToRegisterNumber (uint32_t kind, uint32_t num) = 0;

View File

@@ -286,10 +286,10 @@ public:
}
Error
ReturnToFrameWithIndex (uint32_t frame_idx, lldb::ValueObjectSP return_value_sp);
ReturnFromFrameWithIndex (uint32_t frame_idx, lldb::ValueObjectSP return_value_sp);
Error
ReturnToFrame (lldb::StackFrameSP frame_sp, lldb::ValueObjectSP return_value_sp);
ReturnFromFrame (lldb::StackFrameSP frame_sp, lldb::ValueObjectSP return_value_sp);
virtual lldb::StackFrameSP
GetFrameWithStackID (const StackID &stack_id)