Am 08.09.2014 18:28 schrieb "Reinier Olislagers" < reinierolislag...@gmail.com>: > > On 08/09/2014 18:01, Joost van der Sluis wrote: > > On 09/08/2014 10:25 AM, Reinier Olislagers wrote: > >> 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"... > >> (no debugging symbols found) > >> (gdb) run > >> Starting program: /usbstorage/backup/hellomips > >> > >> > > > > That's it? Nothing more? You could try to send a sigint (ctrl-c) and > > then ask for a backtrace (bt). > (gdb) run > Starting program: /usbstorage/backup/hellomips > ^C > Program received signal SIGINT, Interrupt. > 0x00401b20 in ?? () > (gdb) bt > #0 0x00401b20 in ?? () > warning: GDB can't find the start of the function at 0x401b20. > > GDB is unable to find the start of the function at 0x401b20 > and thus can't determine the size of that function's stack frame.
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? Regards, Sven
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel