From: "Ulisses Furquim" <ulissesf@gmail.com>
To: gdb@sourceware.org
Subject: Problems with multi-threaded application debugging
Date: Thu, 31 May 2007 12:50:00 -0000 [thread overview]
Message-ID: <d23110170705310550j314ad026y2d0c20095a267213@mail.gmail.com> (raw)
Hi,
I was doing some tests trying to debug a simple multi-threaded
application and noticed some strange gdb behaviors:
- sometimes when you "continue" gdb doesn't stop at a breakpoint
inside some of the threads;
- sometimes when you try to single step (with "next") all the threads
run until the program exits;
- I was trying to use the scheduler-locking variable (setting it to
"on"), but it seems I can single step on only one thread. I mean, If I
switch to another thread and try to single step it, gdb switches back
to the previous thread.
Does anybody have any idea? Is this the expected behavior of gdb?
Best regards,
-- Ulisses
next reply other threads:[~2007-05-31 12:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-31 12:50 Ulisses Furquim [this message]
2007-05-31 17:23 ` Daniel Jacobowitz
2007-05-31 18:35 ` Ulisses Furquim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d23110170705310550j314ad026y2d0c20095a267213@mail.gmail.com \
--to=ulissesf@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox