[PATCH] D38240: [dwarfdump] Add support for -debug-line=OFFSET

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 09:47:04 PDT 2017


To further explain the rationale: While this may seem like overkill for a utility like dwarfdump (though even there it is useful when e.g., loading dSYMs over NFS), the end goal for lib/DebugInfo is to be good enough to be used by LLDB, and LLDB has a strong requirement for lazy parsing.

-- adrian

> On Sep 25, 2017, at 9:37 AM, David Blaikie <dblaikie at gmail.com> wrote:
> 
> +1 - I'm not sure there is a way. But worth checking/considering it.
> 
> I think the issue, at least pre DWARF5 maybe (hopefully it's been fixed? I know a few efforts have been made to make things more independently parsed), is that you can't parse the line table without the CU, and you don't know which CU this line table is for - so you have to walk all the CUs... - but worth checking.
> 
> On Mon, Sep 25, 2017 at 9:16 AM Adrian Prantl via Phabricator <reviews at reviews.llvm.org <mailto:reviews at reviews.llvm.org>> wrote:
> aprantl accepted this revision.
> aprantl added a comment.
> 
> Without having checked out API yet — this is still traversing over all CUs to find the one with the entry. This could be slow for something like clang.dSYM. Is there a way to find the one CU containing the entry quicker? If not, this LGTM.
> 
> 
> Repository:
>   rL LLVM
> 
> https://reviews.llvm.org/D38240 <https://reviews.llvm.org/D38240>
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/3c20b876/attachment.html>


More information about the llvm-commits mailing list