commit | 89d521d6acf4abb56c5582da0689f147ee82b3eb | [log] [tgz] |
---|---|---|
author | Andy Yankovsky <werat@google.com> | Mon Feb 01 12:25:53 2021 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Feb 05 01:31:28 2021 -0800 |
tree | 6a5a5bee36511676f4788ebad32bc167675ec1a6 | |
parent | 0e0c7d1fdf6c66f7121b2fbddc998d3f222d1fcb [diff] |
[lldb] Use current execution context in SBDebugger Use `GetSelectedExecutionContext()` instead of `GetCommandInterpreter().GetExecutionContext()` in `SBDebugger::GetInternalVariableValue/SBDebugger::SetInternalVariable`. The execution context in the command interpreter might be empty, if no commands has been executed yet (it is updated only when handling commands or completions -- e.g. https://github.com/llvm/llvm-project/blob/main/lldb/source/Interpreter/CommandInterpreter.cpp#L1855). Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D95761 GitOrigin-RevId: 754ab803b8dc659e3645d369d1b5d6d2f97be29e