[lldb-dev] Trouble with 'target modules search-paths...'
Aidan Dodds
aidan at codeplay.com
Tue Mar 25 09:44:06 PDT 2014
Hi All,
I have been experiencing some problems when using the following command:
(lldb) target modules search-paths add . d:/foo
My intent is to set the folder for LLDB to locate any shared object
files that the gdbremote target may load via dlopen().
After issuing the above command all of the loaded sections in the target
executable seems to be missing, and I am unable to
find a LoadAddresses for any symbols etc.
I have come across the code below, from "source/Target/Target.cpp at line:1748"
void
Target::ImageSearchPathsChanged
(
const PathMappingList &path_list,
void *baton
)
{
Target *target = (Target *)baton;
ModuleSP exe_module_sp (target->GetExecutableModule());
if (exe_module_sp)
target->SetExecutableModule (exe_module_sp, true);
}
When I disable this code then everything works as expected for me.
I am wondering what the intent of this code is?
or does anyone have any ideas why I would be seeing such problems?
Thanks,
Aidan
--
Aidan Dodds
Codeplay Software Ltd
45 York Place, Edinburgh, EH1 3HP
Tel: 0131 466 0503
Fax: 0131 557 6600
Website: http://www.codeplay.com
Twitter: https://twitter.com/codeplaysoft
This email and any attachments may contain confidential and /or privileged information and is for use by the addressee only. If you are not the intended recipient, please notify Codeplay Software Ltd immediately and delete the message from your computer. You may not copy or forward it,or use or disclose its contents to any other person. Any views or other information in this message which do not relate to our business are not authorized by Codeplay software Ltd, nor does this message form part of any contract unless so stated.
As internet communications are capable of data corruption Codeplay Software Ltd does not accept any responsibility for any changes made to this message after it was sent. Please note that Codeplay Software Ltd does not accept any liability or responsibility for viruses and it is your responsibility to scan any attachments.
Company registered in England and Wales, number: 04567874
Registered office: 81 Linkfield Street, Redhill RH1 6BY
More information about the lldb-dev
mailing list