Have a question about our Software Developer Kit? Ask them here.
- Posts: 10
- Joined: Sun Jul 17, 2011 7:55 pm
I'm asking, because the DWARF sections in vbcc-compiled executables never worked correctly with OS4's gdb. And even addr2line, although working, emits dozens of suspiscious error messages:
Code: Select all
BFD: Dwarf Error: mangled line number section (bad file number).
In the past we frequently reassured ourselves that the DWARF sections created by vbcc are legal. They definitely work with gdb and addr2line on PPC-based Linux or BSD systems.
So what has been changed to cause this incompatibility? Maybe I could improve support in vbcc, if I only knew...
- Posts: 63
- Joined: Thu Jun 23, 2011 9:03 am
Hi all developers of the AmigaOS,
so the question Frank Wille (phx), the developer of VBCC asks above is due to my experiences with debugging my programs compiled with VBCC / AmigaOS4. When searching for the actual crashed line with addr2line, I get multiple error messages described above, but the last line addr2line produces gives the correct information about the source file and line containing the error. What could be the reason for partial incompatibility of addr2line and VBCC? I hope the developer having an idea of the reason could work with Frank to get this problem cleared. The site containing Frank's email address is http://sun.hasenbraten.de/vbcc/
Thanks in advance!
- AmigaOS Core Developer
- Posts: 591
- Joined: Sat Jun 18, 2011 2:40 am
- Location: Portsmouth, UK
I don't know about vbcc as I don't use but with gcc you should use stabs (-gstabs) not dwarf based debug. Is there a stabs option for vbcc?