From 5a6fa540dcc0a86b6e4412ad27bbb0a732bc859b Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 3 Jun 2011 20:40:54 +0000 Subject: Move SaveFrameZeroState and RestoreSaveFrameZero implementations to Thread base class llvm-svn: 132586 --- .../Plugins/Process/gdb-remote/ThreadGDBRemote.cpp | 26 ---------------------- 1 file changed, 26 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp index 8ed7eda..0be5edf 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp @@ -221,32 +221,6 @@ ThreadGDBRemote::PrivateSetRegisterValue (uint32_t reg, StringExtractor &respons return gdb_reg_ctx->PrivateSetRegisterValue (reg, response); } -bool -ThreadGDBRemote::SaveFrameZeroState (RegisterCheckpoint &checkpoint) -{ - lldb::StackFrameSP frame_sp(GetStackFrameAtIndex (0)); - if (frame_sp) - { - checkpoint.SetStackID(frame_sp->GetStackID()); - return frame_sp->GetRegisterContext()->ReadAllRegisterValues (checkpoint.GetData()); - } - return false; -} - -bool -ThreadGDBRemote::RestoreSaveFrameZero (const RegisterCheckpoint &checkpoint) -{ - lldb::StackFrameSP frame_sp(GetStackFrameAtIndex (0)); - if (frame_sp) - { - bool ret = frame_sp->GetRegisterContext()->WriteAllRegisterValues (checkpoint.GetData()); - frame_sp->GetRegisterContext()->InvalidateIfNeeded(true); - ClearStackFrames(); - return ret; - } - return false; -} - lldb::StopInfoSP ThreadGDBRemote::GetPrivateStopReason () { -- cgit v1.1