[lldb-dev] Parsing Line Table to determine function prologue?
Leonard Mosescu via lldb-dev
lldb-dev at lists.llvm.org
Mon Oct 8 12:28:49 PDT 2018
>
> Even if we do need to parse the line table, could it be done just for the
> function in question? The debug info tells us the function's address
> range, so is there some technical reason why it couldn't parse the line
> table only for the given address range?
>
My understanding is that there's one DWARF .debug_line "program" per CU,
and normally you'd need to "execute" the whole line number program.
On Sat, Oct 6, 2018 at 8:05 PM, Zachary Turner via lldb-dev <
lldb-dev at lists.llvm.org> wrote:
> While implementing native PDB support I noticed that LLDB is asking to
> parse an entire compile unit's line table in order to determine if 1
> address is a function prologue or epilogue.
>
> Is this necessary in DWARF-land? It would be nice if I could just pass
> the prologue and epilogue byte size directly to the constructor of the
> lldb_private::Function object when I construct it.
>
> It seems unnecessary to parse the entire line table just to set a
> breakpoint by function name, but this is what ends up happening.
>
> Even if we do need to parse the line table, could it be done just for the
> function in question? The debug info tells us the function's address
> range, so is there some technical reason why it couldn't parse the line
> table only for the given address range?
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20181008/a80b3fad/attachment.html>
More information about the lldb-dev
mailing list