[Lldb-commits] [lldb] [lldb] Fix dummy target filtering regression in CommandInterpreter (PR #198949)
Ivan Tadeu Ferreira Antunes Filho via lldb-commits
lldb-commits at lists.llvm.org
Fri May 22 09:02:42 PDT 2026
================
@@ -3284,9 +3284,15 @@ void CommandInterpreter::FindCommandsForApropos(llvm::StringRef search_word,
ExecutionContext
CommandInterpreter::GetExecutionContext(bool adopt_dummy_target) const {
- return !m_overriden_exe_contexts.empty()
- ? m_overriden_exe_contexts.top()
- : m_debugger.GetSelectedExecutionContext(adopt_dummy_target);
+ if (!m_overriden_exe_contexts.empty()) {
+ ExecutionContext override_ctx = m_overriden_exe_contexts.top();
+ if (!adopt_dummy_target && override_ctx.GetTargetPtr() &&
+ override_ctx.GetTargetPtr()->IsDummyTarget()) {
+ override_ctx.Clear();
+ }
+ return override_ctx;
+ }
+ return m_debugger.GetSelectedExecutionContext(adopt_dummy_target);
----------------
itf wrote:
Done! this also works
https://github.com/llvm/llvm-project/pull/198949
More information about the lldb-commits
mailing list