[lldb-dev] [Bug 36746] New: Allow 'quit' to take an exit code

via lldb-dev lldb-dev at lists.llvm.org
Wed Mar 14 13:45:37 PDT 2018


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 at lists.llvm.org
          Reporter: alblue at apple.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180314/7a882427/attachment.html>


More information about the lldb-dev mailing list