[llvm] r178722 - Debug Info: according to DWARF 2, FORM_ref_addr the same size as an address on

Eric Christopher echristo at gmail.com
Thu Apr 4 12:19:33 PDT 2013


> After talking with Greg, we have to stick with dwarf2 format of ref_addr
> since our tool chains can only handle that right now. Similar to what we
> have for llvm-dwarfdump,
> our tool chains are in the process of migrating to Dwarf4, we handle some
> Dwarf4 features and may
> deviate from Dwarf4 when there are incompatibilities.

Oddly enough we've been using the dwarf4 definition the entire time...

>
> We don't really want dwarf2 compatibility. If you think it is wrong to use
> DarwinGDBCompat, do you have any suggestion?
>

I don't know what else to tell you. This is a change to how dwarf
worked between dwarf2 and dwarf3. If you need to enable some
compatibility this belongs in a switch between dwarf2 and dwarf3 plus.
The darwin gdb compatibility level can be used to set dwarf2 by
default for darwin if you'd like, but ultimately the right way to fix
this is to start delineating between dwarf 2 and dwarf3+. There just
aren't any good 10-20 line solutions.

-eric



More information about the llvm-commits mailing list