[fpc-devel] gdb: "Cannot find new threads: generic error"
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri Oct 9 14:18:37 CEST 2009
On 09 Oct 2009, at 14:11, Martin Schreiber wrote:
> On Friday 09 October 2009 13:49:14 Jonas Maebe wrote:
>> On 09 Oct 2009, at 13:44, Martin Schreiber wrote:
>>> What is wrong? Bigger gui-programs are working.
>>
>> Seems to be unrelated to FPC:
>> http://forums.opensuse.org/programming-scripting/412939-gdb-unable-debug-ap
>> plication.html
>>
>> Here is a hint as to what might be the cause:
>> http://www.nabble.com/Cannot-find-new-threads:-generic-error-td19019624.htm
>> l
>>
> 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.
> 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?
Jonas
More information about the fpc-devel
mailing list