https://bugs.llvm.org/show_bug.cgi?id=36746
Bug ID: 36746
Summary: Allow 'quit' to take an exit code
Product: lldb
Version: 6.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: lldb-dev@lists.llvm.org
Reporter: alb...@apple.com
CC: llvm-b...@lists.llvm.org
When running lldb, it is not possible to return an exit code from the process
using the 'quit' command:
(lldb) quit 1
$ echo $?
0
Note that a workaround is to directly call os._exit(1) (since sys.exit is
apparently caught by the interpreter to prevent accidental exiting)
(lldb) script os._exit(1)
$ echo $?
1
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev