[Lldb-commits] [lldb] [lldb/Trace] Add --provider option to thread backtrace (PR #181071)
Adrian Vogelsgesang via lldb-commits
lldb-commits at lists.llvm.org
Sun Mar 29 10:38:13 PDT 2026
================
@@ -92,6 +92,76 @@ class CommandObjectThreadBacktrace : public CommandObjectIterateOverThreads {
case 'u':
m_filtered_backtrace = false;
break;
+ case 'p': {
+ // Parse provider range using same format as breakpoint IDs.
+ // Supports: "N", "N-M", "N to M", "*", "all".
+ llvm::StringRef trimmed = option_arg.trim();
+ if (trimmed == "*" || trimmed.equals_insensitive("all")) {
+ m_show_all_providers = true;
+ m_use_provider_filter = true;
+ break;
+ }
+
+ std::string option_lower = option_arg.lower();
+ static constexpr llvm::StringLiteral range_specifiers[] = {"-", "to"};
----------------
vogelsgesang wrote:
why support both `-` and `to`? Afaict, the code could be slightly simplified if we only support `N-M`. Is there precedent for supporting both `-` and `to` anywhere?
https://github.com/llvm/llvm-project/pull/181071
More information about the lldb-commits
mailing list