Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

GDB and threads

11 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hello,

I am using the latest lazarus, and I start getting the error:

Cannot find new threads: generic error

Looking for this message on internet I find that I can specify to gdb which threading library to use, using a command similar to

set env LD_PRELOAD /lib/x86_64-linux-gnu/libpthread.so.0

(the exact value depends on the system you use)

I put this in my .gdbinit, so it would be used always, but now I find that this file is not being read because Lazarus specifies -nx to gdb.

How can I solve this ?

Quite a bummer if you can't debug during a FPC hackathon :(

Michael.

Reply by email

Ludo Brands
to Michael Van Canneyt
Michael Van Canneyt wrote 23 lines
Hello, I am using the latest lazarus, and I start getting the error: Cannot find new threads: generic error Looking for this message on internet I find that I can specify to gdb which threading library to use, using a command similar to set env LD_PRELOAD /lib/x86_64-linux-gnu/libpthread.so.0 (the exact value depends on the system you use) I put this in my .gdbinit, so it would be used always, but now I find that this file is not being read because Lazarus specifies -nx to gdb. How can I solve this ? Quite a bummer if you can't debug during a FPC hackathon :( Michael.

in tools/debugger/general enter

-ex "set env LD_PRELOAD /lib/x86_64-linux-gnu/libpthread.so.0 "

in Debugger_Startup_Options.

Happy hacking;)

Ludo

Reply by email

Michael Van Canneyt
to Ludo Brands
Ludo Brands wrote 28 lines
On 06/01/2013 10:34 AM, Michael Van Canneyt wrote: > > Hello, > > I am using the latest lazarus, and I start getting the error: > > Cannot find new threads: generic error > > Looking for this message on internet I find that I can specify to gdb > which threading library to use, using a command similar to > > set env LD_PRELOAD /lib/x86_64-linux-gnu/libpthread.so.0 > > (the exact value depends on the system you use) > > I put this in my .gdbinit, so it would be used always, but now I find that > this file is not being read because Lazarus specifies -nx to gdb. > > How can I solve this ? > > Quite a bummer if you can't debug during a FPC hackathon :( > > Michael. > in tools/debugger/general enter -ex "set env LD_PRELOAD /lib/x86_64-linux-gnu/libpthread.so.0 "

That does the trick!

I also found it works correctly if I add {$linklib pthread} to the program clause.

in Debugger_Startup_Options. Happy hacking;)

Thanks. The hackathon is proving to be productive ! (The new TSQLStatement component for sqldb is now a fact, some more tests, and I wil commit)

Michael.

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
On 2013-06-02 09:46, Sven Barth wrote: > When we are finished ;) Where is it taking place?

Bingen, Germany. (actually, a small village called Gensingen, a hotel called "Sutter's landhouse"

Michael.

Reply by email

Sven Barth
to Michael Van Canneyt
Michael Van Canneyt wrote 14 lines
On Sun, 2 Jun 2013, Graeme Geldenhuys wrote: > On 2013-06-02 09:46, Sven Barth wrote: > >> When we are finished ;) > > > Where is it taking place? Bingen, Germany. (actually, a small village called Gensingen, a hotel called "Sutter's landhouse"

With a group of really annoying peacocks in the direct neighbourhood... -.-

Regards,
Sven

Reply by email

Lukasz Sokol
to Sven Barth
Sven Barth wrote 19 lines
On 02.06.2013 11:07, Michael Van Canneyt wrote: > > > On Sun, 2 Jun 2013, Graeme Geldenhuys wrote: > >> On 2013-06-02 09:46, Sven Barth wrote: >> >>> When we are finished ;) >> >> >> Where is it taking place? > > Bingen, Germany. (actually, a small village called Gensingen, a hotel called > "Sutter's landhouse" With a group of really annoying peacocks in the direct neighbourhood... -.- Regards, Sven

LOL the tweeter feed, G+ anybody out there?

(LOL for 'don't feed the nerds' and 'are these the pirates?', OT for : you should have seen RIPE66 2 weeks ago... so many Macbook Air/Pro I've never seen in one place.)

-el es

Reply by email