[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 1 04:34:42 PST 2015
tberghammer added inline comments.
================
Comment at: test/functionalities/load_unload/TestLoadUnload.py:201-204
@@ -205,7 +200,6 @@
- if lldb.remote_platform:
- dylibName = os.path.join(shlib_dir, 'libloadunload_a.so')
- elif self.platformIsDarwin():
+ if self.platformIsDarwin():
dylibName = 'libloadunload_a.dylib'
else:
dylibName = 'libloadunload_a.so'
+
----------------
clayborg wrote:
> It would be great to add something to lldb::SBPlatform and lldb_private::Platform that allows us to get the shared library extension from the platform:
>
> ```
> class SBPlatform
> {
> const char *
> GetSharedLibraryExtension();
> };
> ```
>
> Then this code can become:
>
> ```
> dylibName = "libloadunload" + platform.GetSharedLibraryExtension()
>
>
It is a fairly unrelated change. Will create a separate CL for it
================
Comment at: test/functionalities/load_unload/TestLoadUnload.py:206-209
@@ +205,6 @@
+
+ if lldb.remote_platform:
+ dylibPath = os.path.join(shlib_dir, 'libloadunload_a.so')
+ else:
+ dylibPath = dylibName
+
----------------
clayborg wrote:
> This code should be:
>
> ```
> if lldb.remote_platform:
> dylibPath = os.path.join(shlib_dir, dylibName)
> else:
> dylibPath = dylibName
> ```
Done
http://reviews.llvm.org/D11465
More information about the lldb-commits
mailing list