[lldb-dev] How to get the error message while creating an invalid target?

Jeffrey Tan via lldb-dev lldb-dev at lists.llvm.org
Tue Mar 8 17:22:00 PST 2016


Hi,

In lldb, when I try to "target create [invalid_target]", I got some
meaningful error message like:
error: 'XXX' doesn't contain any 'host' platform architectures: x86_64h,
x86_64, i386

What is the python API to get this from? I tried to check
SBTarget.IsValid() and then use
SBTarget.GetDescription(eDescriptionLevelVerbose), but that does not return
the error message.

Thanks
Jeffrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160308/c1a2048e/attachment.html>


More information about the lldb-dev mailing list