llvm-project/lldb/test/API/commands
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
..
add-dsym/uuid [lldb] Remove license headers from all test source files 2020-02-20 08:32:01 +01:00
apropos [lldb] Remove license headers from all test source files 2020-02-20 08:32:01 +01:00
breakpoint [lldb] Warn the user about starting the --func-regex parameter with an asterisk 2020-05-06 12:37:52 +02:00
command [lldb] [test] Rename '.categories' to 'categories' 2020-11-10 12:02:38 +01:00
disassemble/basic [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
expression [lldb][Editline] Fix crash when navigating through empty command history. 2021-04-07 10:48:47 -07:00
frame [lldb] Replace unneeded use of Foundation with ObjectiveC in tests (NFC) 2021-04-04 20:04:41 -07:00
gui [lldb/tests] Un-skip TestGuiBasicDebug.py on Arm and AArch64 2021-02-08 15:09:09 +03:00
help [lldb] Fix crash in "help memory read" 2021-01-19 09:54:17 +00:00
log [llvm] [Support] Fix segv if argv0 is null in getMainExecutable() 2020-11-09 11:35:11 +01:00
platform [lldb] Move PlatformPOSIX::ConnectToWaitingProcesses to RemoteAwarePlatform 2021-03-14 22:43:52 +01:00
process [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
quit
register/register Revert "Revert "[LLDB] Arm64/Linux test case for MTE and Pointer Authentication regset"" 2021-04-01 14:10:14 +05:00
reproducer/invalid-args
session [lldb/interpreter] Move the history subcommand to session (NFCI) 2020-07-23 13:05:45 +02:00
settings [lldb/Interpreter] Add `interpreter.repeat-previous-command` setting 2021-03-05 19:33:32 +01:00
source/info
statistics/basic [lldb] Mark expressions that couldn't be parsed or executed as failed expressions 2020-03-23 15:28:17 +01:00
target [lldb] Un-XFAIL TestAutoInstallMainExecutable on Windows 2021-04-01 08:46:23 -07:00
thread/select [lldb] Replace StringConvert with llvm::to_integer when parsing integer values in CommandObjects 2020-07-01 17:19:31 +02:00
trace [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
version
watchpoints [lldb] [test] Update XFAILs for FreeBSD/aarch64 2021-03-10 18:36:19 +01:00