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

Martin Schreiber fpmse at bluewin.ch
Fri Oct 9 16:22:50 CEST 2009


On Friday 09 October 2009 14:18:37 Jonas Maebe wrote:
> On 09 Oct 2009, at 14:11, Martin Schreiber wrote:
> >
> > That means the linker removes libpthread.so and gdb can't work
> > without?
>
> There is nothing to remove by the linker in case of your FPC program,
> because the cthreads unit does not explicitly link to libpthread. It
> tries to dynamically load the library at run time.
>
Then I don't understand the problem.

> > So I must remove cthreads from the console program template and hope
> > the
> > users don't forget to add it if they use threads. Possibly a new
> > effect with
> > binutils with the dynlib fix.
>
> Where did you see that this was caused by a bug in binutils?
>
It was not caused by a bug in binutils but the new binutils with the bugfix 
showed the problem the first time. With original Suse 11.1 binutils gdb could 
handle the console program template IIRC.

Martin



More information about the fpc-devel mailing list