Invoking gdb leads to an internal error: # gdb telnet GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "armv6-marcel-freebsd"... /home/rpi/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/arm-tdep.c:2589: internal-error: arm_elf_osabi_sniffer: Unknown ARM EABI version 0x5000000 A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y /home/rpi/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/arm-tdep.c:2589: internal-error: arm_elf_osabi_sniffer: Unknown ARM EABI version 0x5000000 A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n # Kernel and world are build on a i386 9.1-STABLE revision 248965 with: make -C $SRCROOT -DWITH_ARM_EABI kernel-toolchain make -C $SRCROOT MALLOC_PRODUCTION=yes -DWITH_ARM_EABI buildworld make -C $SRCROOT KERNCONF=$KERNCONF WITH_FDT=yes -DWITH_ARM_EABI buildkernel KERNCONF is RPI-B with serial console enabled (RPI-Bsc). clang is FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 How-To-Repeat: Build a system like mentioned in the description and invoke dgb.
The problem is fixed since r249603. Ralf