News for hackers. Stuff that matters.
Re:Bringing Objective-C to the Amiga (2018) by rightbyte on Thursday October 07, 2021 @06:07PM (#28792707)
"I added exceptions into the mix. Now I got the same 'Progam aborted' [...] When using m68k-amigaos-g++ rather than m68k-amigaos-gcc, it would suddenly work."

Sounds like he didn't use the -fexception flag?

Re:Bringing Objective-C to the Amiga (2018) by pajko on Friday October 08, 2021 @01:23AM (#28796011)
Yep, this was my thought immediately. But probably this flag is not the one needed, as it enables complete C++ exception support - which turns on a couple of other things automatically.

"-funwind-tables" enables stack unwinding

"-fasynchronous-unwind-tables" makes the stack unwinding available for debuggers

"-fno-dwarf2-cfi-asm" makes the debugger unwind table "old style", so unwinding info goes into .eh_frame and .eh_frame_hdr section (or .ARM.extab and .ARM.exidx on ARM) instead of .debug.*

These sections are then parsed by the backtrace() family of glibc calls: https://www.gnu.org/software/libc/manual/html_node/Backtrace...

Re:Bringing Objective-C to the Amiga (2018) by Midar on Friday October 08, 2021 @07:48AM (#28798145)
If you keep reading on, that was not the problem ;). The problem was missing glue code that would actually register the frames.