Skip to content

Commit 7e7871d

Browse files
committed
[lldb] Clear loaded sections even earlier
Follow-up to llvm#138892 fixing breakage on windows. Calling ClearAllLoadedSections earlier is necessary to avoid throwing out the work done by the windows process plugin.
1 parent 1914184 commit 7e7871d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Target/Process.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,7 @@ Status Process::LaunchPrivate(ProcessLaunchInfo &launch_info, StateType &state,
26752675
m_jit_loaders_up.reset();
26762676
m_system_runtime_up.reset();
26772677
m_os_up.reset();
2678+
GetTarget().ClearAllLoadedSections();
26782679

26792680
{
26802681
std::lock_guard<std::mutex> guard(m_process_input_reader_mutex);
@@ -2763,7 +2764,6 @@ Status Process::LaunchPrivate(ProcessLaunchInfo &launch_info, StateType &state,
27632764
}
27642765

27652766
if (state == eStateStopped || state == eStateCrashed) {
2766-
GetTarget().ClearAllLoadedSections();
27672767
DidLaunch();
27682768

27692769
// Now that we know the process type, update its signal responses from the

0 commit comments

Comments
 (0)