[PATCH] Support DWARF discriminators in object streamer.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Feb 14 08:41:51 PST 2014


> It might be that dwarfdump has a bug and needs more information to
> work. In which case that information should be in the .s or we should
> fix dwarfdump.

It does look like an issue with how llvm-dwarfdump (and plain system
dwarfdump work). I removed the -g and added a .flie. With that
"readelf --debug-dump=rawline" can show the discriminator, but
dwarfdump and llvm-dwarfdump cannot. What dwarfdump tries to do is
dump on compilation unit at a time, and because of that it needs
.debug_info.

The proper fix is probably to implement something like "readelf
--debug-dump=rawline" or what we have right now in "llvm-readobj
-codeview-linetables".

For now, two options are
* Just check the binary contents of the .debug_line section
* extentd the .s to include a .debug_info (attached).

but lets please not mix debug info in the .s and debug info about the .s.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: discriminator.s
Type: application/octet-stream
Size: 2765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140214/8e923fde/attachment.obj>


More information about the llvm-commits mailing list