Re: [lldb-dev] Breakpoints from source-before-file are not working

2015-01-24 Thread Christian Mayer
Ok, I will file a bug. Thank you for your help and your explanations. Christian On 22.01.15 02:46, jing...@apple.com wrote: > >> On Jan 21, 2015, at 5:06 PM, Christian Mayer wrote: >> >> So with the current version of LLDB the source-before-file is worthless >> for debugging a shared library?

Re: [lldb-dev] Breakpoints from source-before-file are not working

2015-01-21 Thread jingham
> On Jan 21, 2015, at 5:06 PM, Christian Mayer wrote: > > So with the current version of LLDB the source-before-file is worthless > for debugging a shared library? So this is acctually not a bug? Two things here. First of all, up till very recently lldb didn't support setting breakpoints befo

Re: [lldb-dev] Breakpoints from source-before-file are not working

2015-01-21 Thread Christian Mayer
So with the current version of LLDB the source-before-file is worthless for debugging a shared library? So this is acctually not a bug? Is there a workaround to debug a shared library with the current version of LLDB? Setting all breakpoints manually for each start is too much work. If you must se

Re: [lldb-dev] Breakpoints from source-before-file are not working

2015-01-21 Thread jingham
I didn't notice you were stopping early in dyld_start. lldb doesn't try to resolve any breakpoints that haven't currently been resolved that early on, since it knows the world is going to change out from under it, so for 99.999% of all breakpoints that work will be wasted. If you set breakpoin

Re: [lldb-dev] Breakpoints from source-before-file are not working

2015-01-21 Thread Christian Mayer
On 21.01.15 19:45, jing...@apple.com wrote: > When I add a breakpoint like this then before I run the program it is not > resolved, but then when I run it does get resolved and hit. For instance: > > > cat /tmp/address-bkpt.lldb > break set -a 0x7fff9223f050 > > lldb Sketch.app/ -S /tmp/a

Re: [lldb-dev] Breakpoints from source-before-file are not working

2015-01-21 Thread jingham
When I add a breakpoint like this then before I run the program it is not resolved, but then when I run it does get resolved and hit. For instance: > cat /tmp/address-bkpt.lldb break set -a 0x7fff9223f050 > lldb Sketch.app/ -S /tmp/address-bkpt.lldb (lldb) command source -s 1 '/tmp/addre

[lldb-dev] Breakpoints from source-before-file are not working

2015-01-21 Thread Christian Mayer
Hi list, I have a file `lldb.txt` with LLDB commands: target create PATH/TO/BINARY br s -a 0x7fff5fc01031 process launch --stop-at-entry So I can start debugging a program with `lldb -S lldb.txt`. After launch the debugger stops at 0x7fff5fc01000 (under Mac OS X 10.10) in dyld. As you can see I