[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-08-04 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain added a comment. In https://reviews.llvm.org/D11465#826132, @tberghammer wrote: > Thanks for all of the data. Based on this I think you are using a preview > version of android O what reports SDK 25 but the linker works the way an SDK > 26 system linker would do. > > I think the pro

[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-07-31 Thread Tamas Berghammer via Phabricator via lldb-commits
tberghammer added a comment. Thanks for all of the data. Based on this I think you are using a preview version of android O what reports SDK 25 but the linker works the way an SDK 26 system linker would do. I think the proper fix for the problem is to do something like what Greg suggested to d

[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-07-31 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain added a comment. The android version am using for testing is "O". generic_mips64:/ # getprop ro.build.version.release O Repository: rL LLVM https://reviews.llvm.org/D11465 ___ lldb-commits mailing list lldb-commits@lists.llvm.org htt

[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-07-31 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain added a comment. Hi Tamas, > Run "target modules list" (lldb) target modules list [ 0] E6A47987---- /export/tmp/nin/LLVM/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/a.out

[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-07-28 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. It would be nice to auto detect the names correctly? Comment at: lldb/trunk/source/Plugins/Platform/Android/PlatformAndroid.cpp:389 + struct __lldb_dlopen_result { void *image_ptr; const char *error_str; } the_result; +

[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-07-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: lldb/trunk/source/Plugins/Platform/Android/PlatformAndroid.cpp:389 + struct __lldb_dlopen_result { void *image_ptr; const char *error_str; } the_result; + the_result.image_ptr = __dl_dlopen ("%s", 2);

[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-07-27 Thread Tamas Berghammer via Phabricator via lldb-commits
tberghammer added a comment. Hi Nitesh, The way dlopen, dlclose and dl_phdr_iterate is implemented on android is pretty strange until (and including) SDK 25. The trick is that these functions are implemented inside "/system/bin/linker" with actual function names prefixed with "__dl_". The link

[Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2017-07-27 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain added inline comments. Comment at: lldb/trunk/source/Plugins/Platform/Android/PlatformAndroid.cpp:389 + struct __lldb_dlopen_result { void *image_ptr; const char *error_str; } the_result; + the_result.image_ptr = __dl_dlopen ("%s",

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-03 Thread Tamas Berghammer via lldb-commits
tberghammer added a comment. In http://reviews.llvm.org/D11465#300606, @labath wrote: > In http://reviews.llvm.org/D11465#300581, @jingham wrote: > > > It seems like an awful lot of logic is duplicated between the POSIX & > > Android versions of LoadImage when all that really changes is the name

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-02 Thread Pavel Labath via lldb-commits
labath added a subscriber: labath. labath added a comment. In http://reviews.llvm.org/D11465#300581, @jingham wrote: > It seems like an awful lot of logic is duplicated between the POSIX & Android > versions of LoadImage when all that really changes is the name of the > function you are calling

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-02 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. It seems like an awful lot of logic is duplicated between the POSIX & Android versions of LoadImage when all that really changes is the name of the function you are calling. Is it possible to centralize this some more? Repository:

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-02 Thread Tamas Berghammer via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL254504: Fix "process load/unload" on android (authored by tberghammer). Changed prior to commit: http://reviews.llvm.org/D11465?vs=41491&id=41608#toc Repository: rL LLVM http://reviews.llvm.org/D114

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-01 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks fine. http://reviews.llvm.org/D11465 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-01 Thread Tamas Berghammer via lldb-commits
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(): +

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-01 Thread Tamas Berghammer via lldb-commits
tberghammer updated this revision to Diff 41491. http://reviews.llvm.org/D11465 Files: include/lldb/Target/Platform.h include/lldb/Target/Process.h packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py source/API/SBProcess.cpp source/Commands/CommandObjectProcess.

Re: [Lldb-commits] [PATCH] D11465: Fix "process load/unload" on android

2015-12-01 Thread Tamas Berghammer via lldb-commits
tberghammer updated the summary for this revision. tberghammer updated this revision to Diff 41490. tberghammer added a comment. Herald added a subscriber: emaste. Address review comments http://reviews.llvm.org/D11465 Files: include/lldb/Target/Platform.h include/lldb/Target/Process.h pa