bebbo / amiga-gcc

The GNU C-Compiler with Binutils and other useful tools for cross development for Amiga
GNU General Public License v2.0
320 stars 66 forks source link

Missing wide char support for C++ #19

Closed afalkenhahn closed 6 years ago

afalkenhahn commented 6 years ago

I need some basic wide char functions in my C++11 project. The wide char functions that Sebastian has recently added to clib2 are already sufficient for my purposes. But I'm unable to use them with m68k-amigaos-gcc because C++ is only supported for libnix.

Thus, to give us basic wide char support one of the following things should be implemented:

1) Make it possible to use clib2 with C++ (probably easiest?)

or

2) Add some basic wide char functions to libnix (on MorphOS libnix has some wide char functions so maybe those could be used?)

Thanks!

afalkenhahn commented 6 years ago

set a debugger breakpoint on __print_termination and check the stack for function addresses to identify the caller

How can I do that? Isn't that only possible with gdb which we don't have for OS3 68k?

bebbo commented 6 years ago

I'm using DBug from O.M.A. but barfly should work too.

afalkenhahn commented 6 years ago

I don't have O.M.A. but I could try Barfly. Do I have to compile with -g -gstabs then and leave out stripping or how does that work?

bebbo commented 6 years ago
  1. never strip if you wanna debug
  2. barfly can read the info created by -g, dbug can't.
afalkenhahn commented 6 years ago

Ok, I've tried to link with -g and leave out stripping. The executable is now 16 MB instead of 5 MB so this looks good. Then I did the following:

1) Start BDebug 2) Click "Debug File" and select the 16 MB executable 3) Choose "Run Task" from the "Step/Trace" menu

However, when I now start the host program that communicates with the program started through BDebug, the system locks up completely. Any idea what could be causing this?