[fpc-devel] gdb: "Cannot find new threads: generic error"

Martin Schreiber fpmse at bluewin.ch
Fri Oct 9 13:44:29 CEST 2009


Hi,

linux-i386 Suse 11.1, binutils 2.19.51-15.1, the program:
"
program gdbthread;
{$mode objfpc}{$h+}
uses
 cthreads,sysutils;
begin
end.
"

The compile - debug session:
"
mse at linuxca:~/proj/msegui/testcase/FPC/2_2_4/gdbthread> ppc386 -gl 
gdbthread.pas
Free Pascal Compiler version 2.2.4 [2009/03/28] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling gdbthread.pas
Linking gdbthread
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
6 lines compiled, 0.3 sec
mse at linuxca:~/proj/msegui/testcase/FPC/2_2_4/gdbthread> gdb ./gdbthread
GNU gdb (GDB; openSUSE 11.1) 6.8.50.20081120-cvs
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 "i586-suse-linux".
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>...
(gdb) break main
Breakpoint 1 at 0x80483f8: file gdbthread.pas, line 6.
(gdb) run
Starting program: /home/mse/proj/msegui/testcase/FPC/2_2_4/gdbthread/gdbthread
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
Cannot find new threads: generic error
Cannot find new threads: generic error
(gdb)
 "

What is wrong? Bigger gui-programs are working.

Martin



More information about the fpc-devel mailing list