This is an archive of the discontinued LLVM Phabricator instance.

[lldb/Plugin] Reject WASM and Hexagon in DynamicLoaderStatic
ClosedPublic

Authored by JDevlieghere on Feb 18 2020, 10:58 AM.

Details

Summary

The WASM and Hexagon plugin check the ArchType rather than the OSType, so explicitly reject those in the DynamicLoaderStatic.

Diff Detail

Event Timeline

JDevlieghere created this revision.Feb 18 2020, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2020, 10:58 AM

LGTM. Any way to test this somehow?

Sorting the plugins so the static loader is initialized before the WASM loader should exercise this code path.

paolosev accepted this revision.Feb 18 2020, 12:45 PM

Sorting the plugins so the static loader is initialized before the WASM loader should exercise this code path.

Yes, test functionalities/gdb_remote_client/TestWasm.py fails when the order of plugins is sorted.

LGTM. Could you also sort the initialization of DynamicLoaderStatic and DynamicLoaderWasmDYLD in lldb\tools\lldb-test\SystemInitializerTest.cpp and lldb\source\API\SystemInitializerFull.cpp?

This revision is now accepted and ready to land.Feb 18 2020, 12:45 PM
This revision was automatically updated to reflect the committed changes.