[Lldb-commits] [lldb] r230066 - Make sure the public state is eStateStopped when we return from SBTarget::LoadCore() by hijacking the public event queue so we can ensure that the event gets consumed and the public state of the process (StateType SBProcess::GetState()) returns eStateStopped.
Greg Clayton
gclayton at apple.com
Fri Feb 20 13:51:07 PST 2015
Author: gclayton
Date: Fri Feb 20 15:51:06 2015
New Revision: 230066
URL: http://llvm.org/viewvc/llvm-project?rev=230066&view=rev
Log:
Make sure the public state is eStateStopped when we return from SBTarget::LoadCore() by hijacking the public event queue so we can ensure that the event gets consumed and the public state of the process (StateType SBProcess::GetState()) returns eStateStopped.
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=230066&r1=230065&r2=230066&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Fri Feb 20 15:51:06 2015
@@ -3164,7 +3164,7 @@ Process::LoadCore ()
if (error.Success())
{
Listener listener ("lldb.process.load_core_listener");
- HijackPrivateProcessEvents(&listener);
+ HijackProcessEvents(&listener);
if (PrivateStateThreadIsValid ())
ResumePrivateStateThread ();
@@ -3199,7 +3199,7 @@ Process::LoadCore ()
log->Printf("Process::Halt() failed to stop, state is: %s", StateAsCString(state));
error.SetErrorString ("Did not get stopped event after loading the core file.");
}
- RestorePrivateProcessEvents ();
+ RestoreProcessEvents ();
}
return error;
}
More information about the lldb-commits
mailing list