[Lldb-commits] [lldb] [lldb] Add priority support to synthetic frame providers (PR #172848)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 18 12:55:48 PST 2025
================
@@ -1455,16 +1455,34 @@ StackFrameListSP Thread::GetStackFrameList() {
Target &target = process_sp->GetTarget();
const auto &descriptors = target.GetScriptedFrameProviderDescriptors();
- // Find first descriptor that applies to this thread.
+ // Collect all descriptors that apply to this thread.
+ std::vector<const ScriptedFrameProviderDescriptor *>
+ applicable_descriptors;
for (const auto &entry : descriptors) {
const ScriptedFrameProviderDescriptor &descriptor = entry.second;
if (descriptor.IsValid() && descriptor.AppliesToThread(*this)) {
- if (llvm::Error error = LoadScriptedFrameProvider(descriptor)) {
- LLDB_LOG_ERROR(GetLog(LLDBLog::Thread), std::move(error),
- "Failed to load scripted frame provider: {0}");
- }
- break; // Use first matching descriptor (success or failure).
+ applicable_descriptors.push_back(&descriptor);
----------------
bulbazord wrote:
nit: one-line if blocks shouldn't have braces.
https://github.com/llvm/llvm-project/pull/172848
More information about the lldb-commits
mailing list