llvm-project/lldb/source/Expression
Martin Svensson 3faec83376 [lldb] Fix missing characters when autocompleting LLDB commands in REPL
Summary:

When tabbing to complete LLDB commands in REPL, characters would at best be
missing but at worst cause the REPL to crash due to out of range string access.
This patch appends the command character to the completion results to fulfill
the assumption that all matches are prefixed by the request's cursor argument
prefix.

Bug report for the Swift REPL
https://bugs.swift.org/browse/SR-12867

Reviewers: teemperor

Reviewed By: teemperor

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D82835
2020-07-03 12:10:00 +02:00
..
CMakeLists.txt [Expression] Move IRDynamicChecks to ClangExpressionParser 2019-07-12 00:58:02 +00:00
DWARFExpression.cpp [lldb] Refactor Scalar::TruncOrExtendTo 2020-06-24 15:58:33 +02:00
DiagnosticManager.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Expression.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
ExpressionVariable.cpp Internal expressions shouldn't increment the result variable numbering. 2020-03-23 13:30:37 -07:00
FunctionCaller.cpp Handle the case where a thread exits while we are running a function on it. 2020-05-21 17:55:53 -07:00
IRExecutionUnit.cpp [lldb] Use std::make_unique<> (NFC) 2020-06-24 17:48:40 -07:00
IRInterpreter.cpp [lldb] Fix type conversion in the Scalar getters 2020-07-02 18:02:57 +02:00
IRMemoryMap.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
LLVMUserExpression.cpp Handle the case where a thread exits while we are running a function on it. 2020-05-21 17:55:53 -07:00
Materializer.cpp [lldb] Use std::make_unique<> (NFC) 2020-06-24 17:48:40 -07:00
REPL.cpp [lldb] Fix missing characters when autocompleting LLDB commands in REPL 2020-07-03 12:10:00 +02:00
UserExpression.cpp [lldb] Add option to retry Fix-Its multiple times to failed expressions 2020-04-06 11:25:36 +02:00
UtilityFunction.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00