Bug ID 27326
Summary Provide a way to exit lldb with a non-zero exit status
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter john.firebaugh@gmail.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified
Please provide a way to exit scripted lldb interactions with a non-zero exit
status. This is necessary for, e.g. running a debugged program in an automated
test environment, and printing diagnostics and then exiting with a non-zero
exit status if a crash occurs.
This could take several forms:
* An equivalent of GDB's "-return-child-result" option.
* An argument form of "quit", e.g. "quit 1". (GDB also supports this.)
For instance, I would like the following command to work as expected:
lldb --batch -o 'run' -k 'thread backtrace all' -k 'quit 1' <program>