From: Daniel Jacobowitz <drow@false.org>
To: Alan Turing <mashkochit@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Debugging multithreaded application with GDB
Date: Sun, 03 Aug 2008 14:11:00 -0000 [thread overview]
Message-ID: <20080803141100.GA10034@caradoc.them.org> (raw)
In-Reply-To: <74d1018e0808030540t1d782b6oc76b5314ecfcfa9c@mail.gmail.com>
On Sun, Aug 03, 2008 at 03:40:28PM +0300, Alan Turing wrote:
> My problem:
> I need to catch the thread as close to its starting point as possible.
> Setting a break point after the thread is already running means it's
> way past the desired break point.
You can't set thread-specific breakpoints before a thread is running,
because the ID of the thread is not known yet. But normal
breakpoints affect all threads. Can you set a breakpoint at the
thread entry function without specifying the thread?
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2008-08-03 14:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 12:41 Alan Turing
2008-08-03 14:11 ` Daniel Jacobowitz [this message]
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=20080803141100.GA10034@caradoc.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=mashkochit@gmail.com \
/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