File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
lldb/source/Plugins/Process/scripted Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ void ScriptedProcess::DidLaunch() { m_pid = GetInterface().GetProcessID(); }
166
166
void ScriptedProcess::DidResume () {
167
167
// Update the PID again, in case the user provided a placeholder pid at launch
168
168
m_pid = GetInterface ().GetProcessID ();
169
- GetLoadedDynamicLibrariesInfos ();
170
169
}
171
170
172
171
Status ScriptedProcess::DoResume () {
Original file line number Diff line number Diff line change 12
12
#include " lldb/Target/Process.h"
13
13
#include " lldb/Utility/ConstString.h"
14
14
#include " lldb/Utility/ScriptedMetadata.h"
15
+ #include " lldb/Utility/State.h"
15
16
#include " lldb/Utility/Status.h"
16
17
17
18
#include " ScriptedThread.h"
@@ -93,6 +94,11 @@ class ScriptedProcess : public Process {
93
94
void *GetImplementation () override ;
94
95
95
96
void ForceScriptedState (lldb::StateType state) override {
97
+ // If we're about to stop, we should fetch the loaded dynamic libraries
98
+ // dictionary before emitting the private stop event to avoid having the
99
+ // module loading happen while the process state is changing.
100
+ if (StateIsStoppedState (state, true ))
101
+ GetLoadedDynamicLibrariesInfos ();
96
102
SetPrivateState (state);
97
103
}
98
104
You can’t perform that action at this time.
0 commit comments