Is making PDB files for corresponding IR supported in LLVM latest version? After some searching I see llvm-pdbdump, but I want to annotate the IR with debug information so that when I write bitcode it has pdb information. I've heard of CodeView, but it seems to be only for line information. I want variable values also. I would be ok to use DWARF if Visual Studio could understand it using LLDB but I don't know how to do that or if it is support. I would also be ok to write DWARF and then convert to PDB if such is possible. How can I achieve this? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150406/ac313ecc/attachment.html>
On Mon, Apr 6, 2015 at 3:46 PM Rohan Bajaj <rohanbajaj84 at gmail.com> wrote:> Is making PDB files for corresponding IR supported in LLVM latest version? >Not today.> > After some searching I see llvm-pdbdump, but I want to annotate the IR > with debug information so that when I write bitcode it has pdb information. > > I've heard of CodeView, but it seems to be only for line information. I > want variable values also. > > I would be ok to use DWARF if Visual Studio could understand it using LLDB > but I don't know how to do that or if it is support. >Zach (CC-ed) and others are actively working on making LLDB work well on Windows, including reading DWARF debug information on Windows and potentially integration with Visual Studio (although I think that is further away at the moment). However, further discussion might be better on the LLDB mailing lists.> I would also be ok to write DWARF and then convert to PDB if such is > possible. > > How can I achieve this? >Personally, I suspect the best way to do this is to write DWARF and get LLDB into your workflow (either directly with the command line or in the IDE). That at least is the path others are currently pursuing. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150406/cb6ce359/attachment.html>
On Mon, Apr 6, 2015 at 4:16 PM Chandler Carruth <chandlerc at google.com> wrote:> On Mon, Apr 6, 2015 at 3:46 PM Rohan Bajaj <rohanbajaj84 at gmail.com> wrote: > >> Is making PDB files for corresponding IR supported in LLVM latest version? >> > > Not today. > > >> >> After some searching I see llvm-pdbdump, but I want to annotate the IR >> with debug information so that when I write bitcode it has pdb information. >> >> I've heard of CodeView, but it seems to be only for line information. I >> want variable values also. >> >> I would be ok to use DWARF if Visual Studio could understand it using >> LLDB but I don't know how to do that or if it is support. >> > > Zach (CC-ed) and others are actively working on making LLDB work well on > Windows, including reading DWARF debug information on Windows and > potentially integration with Visual Studio (although I think that is > further away at the moment). However, further discussion might be better on > the LLDB mailing lists. >It's worth pointing out that CodeView is **not** only for line information. It's for everything. It's just that LLVM currently only understands a subset of CodeView record types related to line information. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150406/84a19568/attachment.html>
Apparently Analagous Threads
- [MS] Partial PDB (/DEBUG:FASTLINK) parsing support in LLVM
- Do Frontends need to care about alignment?
- Do Frontends need to care about alignment?
- [LLVMdev] DebugInfo/PDB/pdbdump-symbol-format.test fails with VS 2015
- [LLVMdev] DebugInfo/PDB/pdbdump-symbol-format.test fails with VS 2015