Reid Kleckner via llvm-dev
2015-Nov-03 15:51 UTC
[llvm-dev] [cfe-dev] RFC: CodeView debug info emission in Clang/LLVM
On Thu, Oct 29, 2015 at 12:42 PM, Daniel Dilts via cfe-dev < cfe-dev at lists.llvm.org> wrote:> 2. Will LLD and LLDB be updated as necessary to support CodeView? >Rui is is looking at making LLD link codeview from object files into PDBs. Zachary Turner intends to add PDB reading support to LLDB. We already have a PDB implementation of DIContext in lib/DebugInfo that uses PDBs. The only client is currently llvm-symbolizer, but the idea was that LLDB could use it, and eventually we should shift it off DIA and over to something cross-platform. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151103/3edb7984/attachment-0001.html>
Zachary Turner via llvm-dev
2015-Nov-03 17:57 UTC
[llvm-dev] [cfe-dev] RFC: CodeView debug info emission in Clang/LLVM
On Tue, Nov 3, 2015 at 7:51 AM Reid Kleckner via llvm-dev < llvm-dev at lists.llvm.org> wrote:> On Thu, Oct 29, 2015 at 12:42 PM, Daniel Dilts via cfe-dev < > cfe-dev at lists.llvm.org> wrote: > >> 2. Will LLD and LLDB be updated as necessary to support CodeView? >> > > Rui is is looking at making LLD link codeview from object files into PDBs. > > Zachary Turner intends to add PDB reading support to LLDB. We already have > a PDB implementation of DIContext in lib/DebugInfo that uses PDBs. The only > client is currently llvm-symbolizer, but the idea was that LLDB could use > it, and eventually we should shift it off DIA and over to something > cross-platform. >llvm-pdbdump uses it too. But yea, having a cross-platform one is good for obvious reasons, and having a "reference" implementation (e.g. DIA) in addition to the non-DIA based implementation is desirable because it gives us an easy way to verify correctness -- by comparing the output of the DIA based tool and the non DIA based tool. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151103/db747eb6/attachment.html>
Adrian Prantl via llvm-dev
2015-Nov-04 17:55 UTC
[llvm-dev] [cfe-dev] RFC: CodeView debug info emission in Clang/LLVM
> On Nov 3, 2015, at 7:51 AM, Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > On Thu, Oct 29, 2015 at 12:42 PM, Daniel Dilts via cfe-dev <cfe-dev at lists.llvm.org> wrote: > > 2. Will LLD and LLDB be updated as necessary to support CodeView? > > Rui is is looking at making LLD link codeview from object files into PDBs. > > Zachary Turner intends to add PDB reading support to LLDB. We already have a PDB implementation of DIContext in lib/DebugInfo that uses PDBs. The only client is currently llvm-symbolizer, but the idea was that LLDB could use it, and eventually we should shift it off DIA and over to something cross-platform.For reading DWARF we currently have two sort of redundant implementations in the overall LLVM project — one in lib/DebugInfo and another one in LLDB. Do you see an opportunity for sharing the PDB implementation between LLVM and LLDB? -- adrian
Zachary Turner via llvm-dev
2015-Nov-04 18:04 UTC
[llvm-dev] [cfe-dev] RFC: CodeView debug info emission in Clang/LLVM
Yes the PDB implementation will absolutely be shared. I'm not responsible for the DWARF reading code in LLDB, but my understanding is that it is the way it is because they want to load a lot of debug info lazily and so their reader is optimized for that use case. I don't know, I personally think if one had the will and the knowledge, that they could drive a change to LLDB to use LLVM's DWARF reading code, making changes to LLVM's implementation along the way to make sure that the performance characteristics remain the same. I would love it if someone did that. On Wed, Nov 4, 2015 at 9:55 AM Adrian Prantl <aprantl at apple.com> wrote:> > > On Nov 3, 2015, at 7:51 AM, Reid Kleckner via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > On Thu, Oct 29, 2015 at 12:42 PM, Daniel Dilts via cfe-dev < > cfe-dev at lists.llvm.org> wrote: > > > 2. Will LLD and LLDB be updated as necessary to support CodeView? > > > > Rui is is looking at making LLD link codeview from object files into > PDBs. > > > > Zachary Turner intends to add PDB reading support to LLDB. We already > have a PDB implementation of DIContext in lib/DebugInfo that uses PDBs. The > only client is currently llvm-symbolizer, but the idea was that LLDB could > use it, and eventually we should shift it off DIA and over to something > cross-platform. > > For reading DWARF we currently have two sort of redundant implementations > in the overall LLVM project — one in lib/DebugInfo and another one in LLDB. > Do you see an opportunity for sharing the PDB implementation between LLVM > and LLDB? > > -- adrian-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151104/eb9db436/attachment.html>