Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-04-05 Thread Stephane Sezer via lldb-commits
sas closed this revision. sas added a comment. Committed as r265418. http://reviews.llvm.org/D18531 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-30 Thread Ted Woodward via lldb-commits
ted added a comment. Thanks for adding me, Tamas. It looks like removing the code in the Hexagon Dynamic Loader plugin will have lldb drill down into ObjectFileElf, and end up doing the same thing - set the load address of each section of the ELF file. So it should behave the same as before th

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-30 Thread Tamas Berghammer via lldb-commits
tberghammer added a reviewer: ted. tberghammer added a comment. Looks good (I added Ted as a reviewer for hexagon). http://reviews.llvm.org/D18531 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-29 Thread Todd Fiala via lldb-commits
The general idea looks good. You'll want to reach out to the Hexagon dynamic loader author first on any proposed changes there, though. Thanks! -Todd > On Mar 29, 2016, at 11:45 AM, Francis Ricci wrote: > > fjricci updated this revision to Diff 51962. > fjricci added a comment. > > Refactor

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-29 Thread Todd Fiala via lldb-commits
tfiala added a subscriber: tfiala. tfiala added a comment. The general idea looks good. You'll want to reach out to the Hexagon dynamic loader author first on any proposed changes there, though. Thanks! -Todd http://reviews.llvm.org/D18531 ___ ll

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-29 Thread Francis Ricci via lldb-commits
fjricci updated this revision to Diff 51962. fjricci added a comment. Refactor to remove code duplication http://reviews.llvm.org/D18531 Files: include/lldb/Target/DynamicLoader.h source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp source/Plugins/DynamicLoader/Hexagon-D

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-29 Thread Francis Ricci via lldb-commits
fjricci added a comment. I see that DynamicLoaderHexagonDYLD also has a LoadModuleAtAddress function, which seems to be the same as the one in DynamicLoader, except that the member functions it calls are overloaded, and it is also missing the newly added ReadFromMemory code. I think this funct

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-29 Thread Tamas Berghammer via lldb-commits
tberghammer added a comment. I think it should be fine to make it public as it don't do anything what can mess up the private state of the DynamicLoader. In general visibility in LLDB are decided in a bit randomly so usually it is fine to change them if the implementation looks like it won't br

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-29 Thread Francis Ricci via lldb-commits
fjricci added a comment. That was actually one of the fixes I originally tried. My only concern is that LoadModuleAtAddress is a protected method in the dynamic loader. If you think it's fine to change it to public, I'll go ahead and do that. http://reviews.llvm.org/D18531 _

Re: [Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-29 Thread Tamas Berghammer via lldb-commits
tberghammer added a comment. What is your opinion about replacing the ProcessGDBRemote::LoadModuleAtAddress with the following code: lldb::ModuleSP ProcessGDBRemote::LoadModuleAtAddress (const FileSpec &file, lldb::addr_t base_addr, bool value_is_offset) { DynamicLoader* loader = Ge

[Lldb-commits] [PATCH] D18531: Allow gdbremote process to read modules from memory

2016-03-28 Thread Francis Ricci via lldb-commits
fjricci created this revision. fjricci added reviewers: tberghammer, ADodds, tfiala. fjricci added subscribers: sas, lldb-commits. The logic to read modules from memory was added to LoadModuleAtAddress in the dynamic loader, but not in process gdb remote. This means that when the remote uses svr4