[lldb-dev] [Bug 27326] New: Provide a way to exit lldb with a non-zero exit status

via lldb-dev lldb-dev at lists.llvm.org
Tue Apr 12 10:26:16 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27326

            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 at lists.llvm.org
          Reporter: john.firebaugh at gmail.com
                CC: llvm-bugs at 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>

-- 
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/20160412/c7950739/attachment.html>


More information about the lldb-dev mailing list