OSDN Git Service

[lldb/test] Fix lldbutil.run_to_***_breakpoint for shared libraries
authorPavel Labath <pavel@labath.sk>
Tue, 7 Jul 2020 13:23:49 +0000 (15:23 +0200)
committerPavel Labath <pavel@labath.sk>
Tue, 7 Jul 2020 14:07:35 +0000 (16:07 +0200)
commit72ae70032ca3fa3e3bd9a3524bf245d5978c0467
treeead9c4cd2e1228f75dc6b07b20473bff4a1ab40f
parent16266e63963ad6ee27ad21983a9366ab313dfd03
[lldb/test] Fix lldbutil.run_to_***_breakpoint for shared libraries

Even non-remote targets may need to set the launch environment
((DY)LD_LIBRARY_PATH, specifically) to run successfully.

Also, add an assertion to better detect the case when launching a target
fails and the breakpoint is never hit.
lldb/packages/Python/lldbsuite/test/lldbutil.py