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

Christian Mayer christian at fox21.at
Wed Jan 21 06:54:44 PST 2015


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 want to stop at breakpoint 0x7fff5fc01031 in dyld.

The breakpoint is `unresolved` but `locations = 1`.

[lldb]> breakpoint list
Current breakpoints:
1: address = 0x00007fff5fc01031, locations = 1
1.1: address = 0x00007fff5fc01031, unresolved, hit count = 0

When I add the breakpoint manually then it's resolved.

[lldb]> br s -a 0x7fff5fc01031
Breakpoint 2: where = dyld`_dyld_start + 49, address = 0x00007fff5fc01031
[lldb]> breakpoint list
Current breakpoints:
1: address = 0x00007fff5fc01031, locations = 1
1.1: address = 0x00007fff5fc01031, unresolved, hit count = 0

2: address = 0x00007fff5fc01031, locations = 1, resolved = 1, hit count = 0
2.1: where = dyld`_dyld_start + 49, address = 0x00007fff5fc01031, resolved,
hit count = 0

How can I add a breakpoint in my `lldb.txt` file which will be
automatically resolved?

I don't know if this is a bug or if I'm doing it wrong with breakpoints. I
already checked out the newest version (lldb-330.99.0) from the LLDB Git
repository and compiled it with `xcodebuild`. But it's still unresolved.


Best regards,
Christian

-- 
Christian Mayer
*software developer*
http://fox21.at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150121/f74a224e/attachment.html>


More information about the lldb-dev mailing list