On 08/09/2014 20:05, Sven Barth wrote: > Could you please recompile FPC with OPT="-gl" (maybe also -O-) and > compile your test program with that options as well and then retest the > GDB run?
Compiled cross-compiler: opt="-O- -gl" crossopt="-CpMIPS32R2 -CfSOFT" Compiled program: fpc -Tlinux -Pmips -CpMIPS32R2 -gl -O- hellomips.lpr GDB run: gdb ./hellomips dlopen failed on 'libthread_db.so.1' - File not found GDB will not be able to debug pthreads. GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "mips-openwrt-linux"... (gdb) run Starting program: /usbstorage/backup/hellomips ^C Program received signal SIGINT, Interrupt. GET_FSR () at C:/development/fpctrunk/rtl/mips/mips.inc:21 21 C:/development/fpctrunk/rtl/mips/mips.inc: No such file or directory. in C:/development/fpctrunk/rtl/mips/mips.inc Current language: auto; currently pascal (gdb) bt #0 GET_FSR () at C:/development/fpctrunk/rtl/mips/mips.inc:21 #1 0x00401b5c in SYSINITFPU () at C:/development/fpctrunk/rtl/mips/mips.inc:61 #2 0x00401bd0 in FPC_CPUINIT () at C:/development/fpctrunk/rtl/mips/mips.inc:75 #3 0x00429bb8 in fpc_initializeunits () at C:/development/fpctrunk/rtl/inc/system.inc:872 #4 0x0040019c in main () at hellomips.lpr:16 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel