This is an archive of the discontinued LLVM Phabricator instance.

[LLDB] fix error message for one-line breakpoint scripts
ClosedPublic

Authored by tammela on Dec 6 2020, 6:35 AM.

Details

Summary

LLDB is ignoring compilation errors for one-line breakpoint scripts.
This patch fixes the issues and now the error message of the
ScriptInterpreter is shown to the user.

I had to remove a new-line character for the Lua interpreter since it
was duplicated.

Diff Detail

Event Timeline

tammela requested review of this revision.Dec 6 2020, 6:35 AM
tammela created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2020, 6:35 AM
labath accepted this revision.Dec 7 2020, 12:35 AM

Thanks.

lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test
5

-s %s instead of cat ?

This revision is now accepted and ready to land.Dec 7 2020, 12:35 AM
This revision was landed with ongoing or failed builds.Dec 7 2020, 3:23 AM
This revision was automatically updated to reflect the committed changes.