Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-23 Thread Ted Woodward via lldb-dev
ollaborative Project -Original Message- From: Greg Clayton [mailto:gclay...@apple.com] Sent: Tuesday, March 22, 2016 3:51 PM To: Ted Woodward Cc: LLDB Subject: Re: [lldb-dev] "target modules load" and breakpoints not working correctly > On Mar 22, 2016, at 1:45 PM, Ted Woodward w

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-22 Thread Greg Clayton via lldb-dev
> On Mar 22, 2016, at 1:45 PM, Ted Woodward wrote: > > > This is the code in DynamicLoaderHexagonDYLD.cpp that is loading sections, > with my change to call GetLoadBaseAddress(): > >for (unsigned i = 0; i < num_sections; ++i) >{ >SectionSP section_sp (sections->GetSectionAtInd

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-22 Thread Ted Woodward via lldb-dev
is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -Original Message- From: Greg Clayton [mailto:gclay...@apple.com] Sent: Friday, March 18, 2016 7:34 PM To: Ted Woodward Cc: LLDB Subject: Re: [lldb-dev] "target modules load" and breakpoints not

[lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-20 Thread Ted Woodward via lldb-dev
I'm seeing 2 issues with "target modules load": Issue #1: load address is forgotten after a connect: (lldb) file u:\lldb_test\dlopen Current executable set to 'u:\lldb_test\dlopen' (hexagon). (lldb) target modules load -f dlopen -s 0x2 (lldb) b main Breakpoint 1: where = dlope

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-19 Thread Ted Woodward via lldb-dev
Cc: LLDB Subject: Re: [lldb-dev] "target modules load" and breakpoints not working correctly Sounds like something is going wrong when resolving the address. I am guessing that your sections got unloaded when you attached to your GDB remote target. So try this: (lldb) file u:

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-19 Thread Greg Clayton via lldb-dev
t; -Original Message- > From: Greg Clayton [mailto:gclay...@apple.com] > Sent: Friday, March 18, 2016 3:12 PM > To: Ted Woodward > Cc: LLDB > Subject: Re: [lldb-dev] "target modules load" and breakpoints not working > correctly > > So you will need to find out who

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-19 Thread Ted Woodward via lldb-dev
[mailto:gclay...@apple.com] > Sent: Thursday, March 17, 2016 12:44 PM > To: Ted Woodward > Cc: LLDB > Subject: Re: [lldb-dev] "target modules load" and breakpoints not > working correctly > > Sounds like something is going wrong when resolving the address. I

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-19 Thread Greg Clayton via lldb-dev
> Sent: Thursday, March 17, 2016 12:44 PM > To: Ted Woodward > Cc: LLDB > Subject: Re: [lldb-dev] "target modules load" and breakpoints not working > correctly > > Sounds like something is going wrong when resolving the address. I am > guessing that your section

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-19 Thread Greg Clayton via lldb-dev
Sounds like something is going wrong when resolving the address. I am guessing that your sections got unloaded when you attached to your GDB remote target. So try this: (lldb) file u:\lldb_test\dlopen Current executable set to 'u:\lldb_test\dlopen' (hexagon). (lldb) target modules load -f dlopen

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-18 Thread Ted Woodward via lldb-dev
nt: Friday, March 18, 2016 4:32 PM To: Ted Woodward Cc: LLDB Subject: Re: [lldb-dev] "target modules load" and breakpoints not working correctly SectionLoadList::SetSectionLoadAddress() in SectionLoadList.cpp > On Mar 18, 2016, at 1:54 PM, Ted Woodward wrote: > > I don'

Re: [lldb-dev] "target modules load" and breakpoints not working correctly

2016-03-18 Thread Greg Clayton via lldb-dev
gt;> -- >> Qualcomm Innovation Center, Inc. >> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, >> a Linux Foundation Collaborative Project >> >> >> -Original Message- >> From: Greg Clayton [mailto:gclay...@apple.com] >> Sent: