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@lists.llvm.org Reporter: john.fireba...@gmail.com CC: llvm-b...@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.
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev