Skip to content

Commit 269d273

Browse files
[lldb] Call FixCodeAddress prior to setting breakpoint in SwiftLanguageRuntime
This is required so that the breakpoint may be resolved correctly in case the address has been signed. (cherry picked from commit 2c318f1)
1 parent 8150749 commit 269d273

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeNames.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ CreateRunThroughTaskSwitchThreadPlan(Thread &thread,
379379
if (!resume_fn_ptr)
380380
return {};
381381

382+
resume_fn_ptr = thread.GetProcess()->FixCodeAddress(resume_fn_ptr);
382383
return std::make_shared<ThreadPlanRunToAddress>(thread, resume_fn_ptr,
383384
/*stop_others*/ false);
384385
}

0 commit comments

Comments
 (0)