diff options
author | Gongyu Deng <gy_deng@icloud.com> | 2020-03-06 10:10:24 -0800 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-03-06 10:44:00 -0800 |
commit | ec31255c00808dac40710173162f22e4ee89a2fe (patch) | |
tree | 4691d62f1b21029c0cf54daffe84fc9da12d5586 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 1badf7c33a5d01900c77646f750e2ea11ad8bf5a (diff) | |
download | llvm-ec31255c00808dac40710173162f22e4ee89a2fe.zip llvm-ec31255c00808dac40710173162f22e4ee89a2fe.tar.gz llvm-ec31255c00808dac40710173162f22e4ee89a2fe.tar.bz2 |
[lldb] Update the current execution context at the beginning of tab completions
Summary: Fix a bug that tab completions won't synchronous the current execution context. ( Thanks for Jim's explanation! )
Reviewers: teemperor, labath, jingham
Reviewed By: jingham
Subscribers: jingham, labath
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D75597
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index c2c70dc..65b3cf5 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1837,6 +1837,8 @@ void CommandInterpreter::HandleCompletionMatches(CompletionRequest &request) { void CommandInterpreter::HandleCompletion(CompletionRequest &request) { + UpdateExecutionContext(nullptr); + // Don't complete comments, and if the line we are completing is just the // history repeat character, substitute the appropriate history line. llvm::StringRef first_arg = request.GetParsedLine().GetArgumentAtIndex(0); |