@@ -99,10 +99,6 @@ static bool IsModuleSwiftRuntime(lldb_private::Process &process,
99
99
return module .GetFileSpec ().GetFilename () == GetStandardLibraryName (process);
100
100
}
101
101
102
- static UnwindPlanSP
103
- GetFollowAsyncContextUnwindPlan (RegisterContext *regctx, ArchSpec &arch,
104
- bool &behaves_like_zeroth_frame);
105
-
106
102
AppleObjCRuntimeV2 *
107
103
SwiftLanguageRuntime::GetObjCRuntime (lldb_private::Process &process) {
108
104
if (auto objc_runtime = ObjCLanguageRuntime::Get (process)) {
@@ -2608,7 +2604,7 @@ SwiftLanguageRuntime::GetRuntimeUnwindPlan(ProcessSP process_sp,
2608
2604
addr_t fp = regctx->GetFP (LLDB_INVALID_ADDRESS);
2609
2605
if (fp == LLDB_INVALID_ADDRESS) {
2610
2606
if (GetAsyncContext (regctx) != LLDB_INVALID_ADDRESS)
2611
- return GetFollowAsyncContextUnwindPlan (regctx, arch,
2607
+ return GetFollowAsyncContextUnwindPlan (process_sp, regctx, arch,
2612
2608
behaves_like_zeroth_frame);
2613
2609
return UnwindPlanSP ();
2614
2610
}
@@ -2763,11 +2759,9 @@ SwiftLanguageRuntime::GetRuntimeUnwindPlan(ProcessSP process_sp,
2763
2759
return plan;
2764
2760
}
2765
2761
2766
- // Creates an UnwindPlan for following the AsyncContext chain
2767
- // up the stack, from a current AsyncContext frame.
2768
- static UnwindPlanSP
2769
- GetFollowAsyncContextUnwindPlan (RegisterContext *regctx, ArchSpec &arch,
2770
- bool &behaves_like_zeroth_frame) {
2762
+ UnwindPlanSP SwiftLanguageRuntime::GetFollowAsyncContextUnwindPlan (
2763
+ ProcessSP process_sp, RegisterContext *regctx, ArchSpec &arch,
2764
+ bool &behaves_like_zeroth_frame) {
2771
2765
LLDB_SCOPED_TIMER ();
2772
2766
2773
2767
UnwindPlan::RowSP row (new UnwindPlan::Row);
0 commit comments