Skip to content

Commit 2c318f1

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.
1 parent 2e847d0 commit 2c318f1

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
@@ -378,6 +378,7 @@ CreateRunThroughTaskSwitchThreadPlan(Thread &thread,
378378
if (!resume_fn_ptr)
379379
return {};
380380

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

0 commit comments

Comments
 (0)