Back up both the register AND the stop state when calling functions.
Set the thread state to "bland" before calling functions so they don't
inherit the pending signals and die.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@123869 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h b/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h
index 3bf54af..bf70848 100644
--- a/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h
+++ b/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h
@@ -47,12 +47,6 @@
virtual lldb::RegisterContextSP
CreateRegisterContextForFrame (lldb_private::StackFrame *frame);
- virtual bool
- SaveFrameZeroState (RegisterCheckpoint &checkpoint);
-
- virtual bool
- RestoreSaveFrameZero (const RegisterCheckpoint &checkpoint);
-
virtual void
ClearStackFrames ();
@@ -81,12 +75,6 @@
GetBasicInfoAsString ();
void
- SetStopInfo (const lldb::StopInfoSP &stop_info)
- {
- m_actual_stop_info_sp = stop_info;
- }
-
- void
SetName (const char *name)
{
if (name && name[0])
@@ -111,6 +99,12 @@
friend class ProcessGDBRemote;
+ virtual bool
+ SaveFrameZeroState (RegisterCheckpoint &checkpoint);
+
+ virtual bool
+ RestoreSaveFrameZero (const RegisterCheckpoint &checkpoint);
+
void
PrivateSetRegisterValue (uint32_t reg,
StringExtractor &response);
@@ -121,7 +115,6 @@
std::string m_thread_name;
std::string m_dispatch_queue_name;
lldb::addr_t m_thread_dispatch_qaddr;
- uint32_t m_thread_stop_reason_stop_id;
//------------------------------------------------------------------
// Member variables.
//------------------------------------------------------------------