[Lldb-commits] [PATCH] D69646: [LLDB] [PECOFF] Fix error handling for executables that object::createBinary error out on
Martin Storsjö via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 30 15:27:16 PDT 2019
mstorsjo created this revision.
mstorsjo added reviewers: labath, amccarth, aleksandr.urakov.
Herald added subscribers: JDevlieghere, abidh.
Herald added a project: LLDB.
llvm::object::createBinary returns an Expected<>, which requires not only checking the object for success, but also requires consuming the Error, if one was set.
For another similar existing case, move consuming of the Error object to a standalone std::string variable. If the Error only is consumed within a LLDB_LOGF() statement, it actually doesn't get consumed unless that log channel is enabled.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D69646
Files:
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
lldb/test/Shell/ObjectFile/PECOFF/invalid-export-table.yaml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69646.227189.patch
Type: text/x-patch
Size: 4051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191030/439b5bd7/attachment.bin>
More information about the lldb-commits
mailing list