llvm-project/lldb/source
Jordan Rupprecht f49a4440d3 [lldb][Editline] Fix crash when navigating through empty command history.
An empty history entry can happen by entering the expression evaluator an immediately hitting enter:

```
$ lldb
(lldb) e
Enter expressions, then terminate with an empty line to evaluate:
  1:  <hit enter>
```

The next time the user enters the expression evaluator, if they hit the up arrow to load the previous expression, lldb crashes. This patch treats empty history sessions as a single expression of zero length, instead of an empty list of expressions.

Fixes http://llvm.org/PR49845.

Differential Revision: https://reviews.llvm.org/D100048
2021-04-07 10:48:47 -07:00
..
API [lldb] Prevent that LLDB randomly crashes in CommandLineParser::addOption by initializing LLVM's command line parser 2021-04-01 20:17:54 +02:00
Breakpoint Make the stop-on-sharedlibrary-events setting work. 2021-03-24 11:15:11 -07:00
Commands [lldb] Fix bug where memory read --outfile is not truncating the file 2021-04-06 09:16:28 -07:00
Core [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
DataFormatters [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Expression Teach DWARFExpression about DWARF 4+ Location Descriptions 2021-03-23 10:29:51 -07:00
Host [lldb][Editline] Fix crash when navigating through empty command history. 2021-04-07 10:48:47 -07:00
Initialization [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
Interpreter [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
Plugins [lldb] Fix else-after-return in AppleObjCRuntimeV2 (NFC) 2021-04-06 10:07:22 -07:00
Symbol Fix "image lookup --address" Summary results for inline functions. 2021-04-01 11:36:26 -07:00
Target Fix "image lookup --address" Summary results for inline functions. 2021-04-01 11:36:26 -07:00
Utility [SystemZ][z/OS][Windows] Add new OF_TextWithCRLF flag and use this flag instead of OF_Text 2021-04-06 07:23:31 -04:00
CMakeLists.txt Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00