Were there any BFD hacks for OS4?

Have a question about our Software Developer Kit? Ask them here.

Were there any BFD hacks for OS4?

Postby phx » Sat Oct 14, 2017 7:58 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...
phx
 
Posts: 10
Joined: Sun Jul 17, 2011 8:55 pm

Re: Were there any BFD hacks for OS4?

Postby blmara » Mon Oct 30, 2017 8:21 pm

*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
blmara
 
Posts: 61
Joined: Thu Jun 23, 2011 10:03 am

Re: Were there any BFD hacks for OS4?

Postby broadblues » Tue Oct 31, 2017 3:40 pm

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?
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 484
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK


Return to SDK Support

Who is online

Users browsing this forum: No registered users and 3 guests