llvm/lldb
Raphael Isemann 4f7fb13f87 [lldb] Don't save empty expressions in the multiline editor history
Right now running `expr` to start the multiline expression editor and then
pressing enter causes an empty history empty to be created for the multiline
editor. That doesn't seem very useful for users as pressing the 'up' key will
now also bring up these empty expressions.

I don't think there is ever a use case for recalling a completely empty
expression from the history, so instead don't save those entries to the history
file and make sure we never recall them when navigating over the expression
history.

Note: This is actually a Swift downstream patch that got shipped with Apple's
LLDB for many years. However, this recently started conflicting with upstream
LLDB as D100048 added a test that made sure that empty expression entries don't
crash LLDB. Apple's LLDB was never affected by this crash as it never saved
empty expressions in the first place.

Reviewed By: augusto2112

Differential Revision: https://reviews.llvm.org/D108983
2021-08-31 18:51:18 +02:00
..
bindings [lldb] Add AllocateMemory/DeallocateMemory to the SBProcess API 2021-07-16 00:45:22 +02:00
cmake [lldb] [cmake] Add LLVM_LIT_ARGS override support for standalone builds 2021-08-09 23:36:01 +02:00
docs [LLDB][Docs] Move best-practices.txt contain to resources/test.rst 2021-08-31 11:45:24 +05:30
examples [lldb/Plugins] Add ScriptedProcess Process Plugin 2021-07-22 14:47:33 +02:00
include/lldb Revert "[lldb] Add minidump save-core functionality to ELF object files" 2021-08-31 13:36:53 +02:00
packages/Python [test] Migrate -gcc-toolchain with space separator to --gcc-toolchain= 2021-08-20 15:24:58 -07:00
resources
scripts
source [lldb] Don't save empty expressions in the multiline editor history 2021-08-31 18:51:18 +02:00
test [lldb] Don't save empty expressions in the multiline editor history 2021-08-31 18:51:18 +02:00
third_party/Python/module [LLDB] Change pexpect timeout to 30 to 60 2021-08-02 06:34:11 +05:00
tools Fix two bugs with stack corefiles patch, restrict test built debugserver 2021-08-11 17:19:31 -07:00
unittests [lldb] Return all line entries matchign a line if no column is specified 2021-08-30 14:45:46 +02:00
utils
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [lldb] skip host build for lldb_tblgen with LLDB_TABLEGEN_EXE set 2021-08-13 14:18:03 -07:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py