[Lldb-commits] [lldb] Fix a bug with cancelling "attach -w" after you have run a process previously (PR #65822)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 8 17:15:10 PDT 2023
================
@@ -2996,10 +2996,22 @@ void CommandInterpreter::FindCommandsForApropos(llvm::StringRef search_word,
m_alias_dict);
}
-ExecutionContext CommandInterpreter::GetExecutionContext() const {
- return !m_overriden_exe_contexts.empty()
- ? m_overriden_exe_contexts.top()
- : m_debugger.GetSelectedExecutionContext();
+ExecutionContext CommandInterpreter::GetExecutionContext() {
+ ExecutionContext exe_ctx;
+ if (!m_overriden_exe_contexts.empty()) {
----------------
bulbazord wrote:
Suggestion/Bikeshedding: Flip the condition and you can reduce one level of indentation in this method. That's just my preference though, doesn't make a difference either way.
https://github.com/llvm/llvm-project/pull/65822
More information about the lldb-commits
mailing list