[LLVMdev] Generate .debug_info for asm files?

Alex alexinbeijing at gmail.com
Thu May 28 07:36:47 PDT 2015


Dear LLVM devs,

I've noticed that LLVM's assembler (and hence clang) doesn't generate debug
data when assembling, even when run with "-g".

Users can add their own CFI/line number data with assembler directives. But
GDB ignores the line number data if you don't have a DIE in the .debug_info
section which identifies the compilation unit. (I'm not an expert on GDB,
but this is the conclusion I have drawn from single-stepping through GDB on
some test binaries.)

Would you be interested in a patch which makes the assembler generate
.debug_info?

Thanks,
Alex Dowad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150528/f27195f9/attachment.html>


More information about the llvm-dev mailing list