Date: Mon, 25 Oct 2010 16:39:17 -0700 From: Oleksandr Tymoshenko <gonzo@bluezbox.com> To: hackers@freebsd.org Subject: stock gdb bug: DWARF2 with DWARF_OFFSET_SIZE == 8 Message-ID: <4CC61525.2020500@bluezbox.com>
next in thread | raw e-mail | index | archive | help
gdb on MIP64 does not read DWARF2 line information correctly if gcc was configured with DWARF_OFFSET_SIZE == 8. .debug_line starts with total length field which could be 12 bytes long or 4 bytes long. If it starts with 0xffffffff - it's 12 bytes long. Depending on its size one of the following field is either 8 bytes or 4 bytes. This one-line patch fixes this issue for MIPS64 but I'm not 100% sure that it doesn't break something else. So I'd appreciate input of someone with better grip on ELF/DWARF stuff then me. Patch: http://people.freebsd.org/~gonzo/patches/mips64gdb.diff Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CC61525.2020500>