diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 |
commit | ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (patch) | |
tree | 27916256fdeeb57d10d2f3d6948be5d71a703215 /www/troubleshooting.html | |
parent | 76e0736e7fcfeb179779e49c05604464b1ccd704 (diff) | |
download | src-ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f.tar.gz src-ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f.zip |
Vendor import of lldb trunk r321017:vendor/lldb/lldb-trunk-r321017
Notes
Notes:
svn path=/vendor/lldb/dist/; revision=326949
svn path=/vendor/lldb/lldb-trunk-r321017/; revision=326950; tag=vendor/lldb/lldb-trunk-r321017
Diffstat (limited to 'www/troubleshooting.html')
-rwxr-xr-x | www/troubleshooting.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/www/troubleshooting.html b/www/troubleshooting.html index 7d03faf7ae25..f12c8aa79ac6 100755 --- a/www/troubleshooting.html +++ b/www/troubleshooting.html @@ -79,6 +79,22 @@ 0 </tt></pre></code> <p> Above we can see that "/tmp/a.out" does have a compile unit, and "/usr/lib/dyld" does not. + <p> We can also list the full paths to all compile units for a module using python: +<code><pre><tt> +(lldb) <b>script</b> +Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D. +>>> <b>m = lldb.target.module['a.out']</b> +>>> <b>for i in range(m.GetNumCompileUnits()):</b> +... <b>cu = m.GetCompileUnitAtIndex(i).file.fullpath</b> +/tmp/main.c +/tmp/foo.c +/tmp/bar.c +>>> +</tt></pre></code> + <p> This can help to show the actual full path to the source files. Sometimes IDEs will set breakpoints by full paths where the path doesn't match the full path in the debug info and this can cause LLDB to not resolve breakpoints. You can use the breakpoint list command with the --verbose option to see the full paths for any source file and line breakpoints that the IDE set using: +<code><pre><tt> +(lldb) <b>breakpoint list --verbose</b> +</tt></pre></code> </div> <div class="postfooter"></div> </div> |