[LLVMdev] Questions about attaching DWARF source code debugging information to generated LLVM-IR.
Christian Schafmeister
meister at temple.edu
Tue Apr 23 13:30:27 PDT 2013
Hey folks,
I'm wrestling with adding DWARF source code file/line information to my generated LLVM-IR from my Common Lisp compiler.
I think I'm doing everything properly using the llvm::DIBuilder class - but when I load my Common Lisp application and load a compiled bundle into it I don't seem to be able to access the metadata properly.
I can list source lines using "l -f dwarf0.lsp -l 1" but I can't set break-points or do much else.
I've prepared a test case and put it in my public folder on dropbox: https://dl.dropboxusercontent.com/u/6229900/dwarf1.txt
It's a flat text file containing six sections which you can jump to by searching for "SECTION" (all caps).
I've added a few lines at each SECTION entry with thoughts about what might be wrong or what is going on.
If one of you debugging gurus could take a few minutes to take a look at it and give me some pointers I'd really, really appreciate it!
Best,
.Chris.
More information about the llvm-dev
mailing list