[PATCH] Change LLDB to use LLVM's DynamicLibrary

I don’t know how to exercise or test the plugin code, so I wonder if someone wouldn’t mind testing this for me. There’s an LLVM patch which you can apply at the root of your LLVM tree which will modify LLVM’s DynamicLibrary to use RTLD_FIRST, as discussed earlier on the list. Then an LLDB-side patch which deletes lldb’s DynamicLibrary and uses LLVM’s instead.

If someone could apply both patches, and then verify that everything still works, I would appreciate. If it passes, I will work on upstreaming the LLVM patch.

0001-Limit-the-symbol-search…patch is the LLVM side patch, and the other is the LLDB side patch.

0001-Limit-the-symbol-search-in-DynamicLibrary-to-the-mod.patch (3.04 KB)

0001-Update-LLDB-to-use-LLVM-s-DynamicLibrary.patch (13.8 KB)

Sorry, this patch currently doesn’t compile because I fail at using Xcode. Working on fixing it up though and will repost.

This should work now, if anyone has some time to look at this.

0001-Limit-the-symbol-search-in-DynamicLibrary-to-the-mod.patch (4.24 KB)

0001-Update-LLDB-to-use-LLVM-s-DynamicLibrary.patch (23.7 KB)