diff options
| author | Andy Yankovsky <werat@google.com> | 2021-02-01 12:25:53 +0100 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2021-02-01 13:12:42 +0100 |
| commit | 754ab803b8dc659e3645d369d1b5d6d2f97be29e (patch) | |
| tree | aca41a84dc1b33472c7d183e6e788f6ca36be78e /lldb/test/API/python_api/module_section/main.cpp | |
| parent | eefa8a9ff859153c510e740b33a9e721e42b88c5 (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
Diffstat (limited to 'lldb/test/API/python_api/module_section/main.cpp')
0 files changed, 0 insertions, 0 deletions
