@Reth
The one which is with SDK is too old, and can't be used with binaries compiled with new GCC. You should build new GDB which support all DWARFs. There is version which is works:
https://github.com/AmigaLabs/binutils- ... ree/nativeOS4-build-clib4To build you need firstly build latest clib4:
https://github.com/AmigaLabs/clib4/tree/developmentThen, install it to SDK , install clib4.library to your actual LIBS: in os4, then build GDB with those includes, and then you are ready.
Steps to build (for my cross-compiler, but you can see the logic and change it in your way):
Clib4:
cd /amiga/
git clone --single-branch --branch development https://github.com/AmigaLabs/clib4
cd clib4
vim GNUmakefile.os4
<replace /usr/ppc-amigaos/SDK/clib4 on /usr/local/amiga/ppc-amigaos/SDK/clib4)
make -f GNUmakefile.os4 INSTALL_PREFIX=/usr/local/amiga/ppc-amigaos/SDK/clib4 -j4
debug version: make -f GNUmakefile.os4 DEBUG=true INSTALL_PREFIX=/usr/local/amiga/ppc-amigaos/SDK/clib4 -j4
rm -rf /usr/local/amiga/ppc-amigaos/SDK/clib4
mkdir /usr/local/amiga/ppc-amigaos/SDK/clib4
mkdir /usr/local/amiga/ppc-amigaos/SDK/clib4/lib
mkdir /usr/local/amiga/ppc-amigaos/SDK/clib4/include
make -f GNUmakefile.os4 install
Then take ready clib4.library, copy to your OS4.
Then dl and build GDB:
cd /amiga/
git clone --single-branch --branch nativeOS4-build-clib4 https://github.com/AmigaLabs/binutils-gdb
cd binutils-gdb
mkdir native-build
cd native-build
CFLAGS="-mcrt=clib4 -Wno-sign-compare -lpthread -athread=native" CXXFLAGS="-mcrt=clib4 -Wno-sign-compare -lpthread -athread=native" ../configure --enable-tui --enable-source-highlight --with-expat --disable-threading --disable-plugins --disable-sim --host=ppc-amigaos --target=ppc-amigaos
make -j6
Ready GDB will be in native-build/gdb/GDB
If you will have some problems in process ask here , i will help with.
PS. one note to add, if you on x5000, it will not work with public kernel, sadly. It needs an updated one.