This is an archive of the discontinued LLVM Phabricator instance.

Print the correct error when our DynamicCheckerFunctions fail to install
ClosedPublic

Authored by teemperor on Sep 3 2018, 1:40 PM.

Details

Summary

The check is inverted here: If we have error messages, we should print those instead
of our default error message. But currently we print the default message when we
actually have a sensible error to print.

Fixes https://bugs.llvm.org/show_bug.cgi?id=38383
Thanks Nat for the patch!

Diff Detail

Repository
rL LLVM

Event Timeline

teemperor created this revision.Sep 3 2018, 1:40 PM

Don't see a way to test this, as this can only be triggered when something in LLDB is going really wrong. That piece of code also has zero test coverage, so I'll just merge it in a few weeks or so unless someone comes up with a good way to test this.

teemperor edited the summary of this revision. (Show Details)Sep 3 2018, 1:42 PM
JDevlieghere accepted this revision as: JDevlieghere.Sep 4 2018, 5:57 AM
JDevlieghere added a subscriber: JDevlieghere.

LGTM!

This revision is now accepted and ready to land.Sep 4 2018, 5:57 AM
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.