[Bug target/19087] Overflowed address in dwarf debug line information

dberlin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 20 00:00:00 GMT 2006



------- Comment #24 from dberlin at gcc dot gnu dot org  2006-09-20 00:00 -------
You guys should be aware that dwarf2/3 has a field in the header of each dwarf
compilation unit labeled "address size" that tells what the address size for
that compilation unit is.
If this is set to 4, you should be able to use 4 byte addresses and any
conforming dwarf2 reader will understand it and use it to determine how many
bytes the address forms (DW_FORM_addr, etc) use.
See section 7.5.1 of the DWARF3 standard.

This is the way the consumer is supposed to know what the address size in a
dwarf2 is (there is also a way to tell the consumer what the offset size should
be for file offsets, in case you want to have really large debug info on a
machine with < 8 byte *addresses*), i'm not sure why you think you need an
extra note.

See the rest of the DWARF2/3 specification for more details.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19087



More information about the Gcc-bugs mailing list