Page 1 of 1

Were there any BFD hacks for OS4?

Posted: Sat Oct 14, 2017 6:58 pm
by phx
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...

Re: Were there any BFD hacks for OS4?

Posted: Mon Oct 30, 2017 7:21 pm
by blmara
*bump*

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!

Marko

Re: Were there any BFD hacks for OS4?

Posted: Tue Oct 31, 2017 2:40 pm
by broadblues
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?