From: "Alan Turing" <mashkochit@gmail.com>
To: gdb@sourceware.org
Subject: Debugging multithreaded application with GDB
Date: Sun, 03 Aug 2008 12:41:00 -0000 [thread overview]
Message-ID: <74d1018e0808030540t1d782b6oc76b5314ecfcfa9c@mail.gmail.com> (raw)
Hi Anyone,
I have encountered a problem using GDB for stepping through execution
threads, and hope someone out there has the proper experience to guide
me through:
1. GDB would set a breakpoint in a thread only if it already exists
2. In most cases, once a thread is launched, it would start executing
almost imemdiately.
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.
Anyone?
Much Obliged,
Mashkochit
next reply other threads:[~2008-08-03 12:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 12:41 Alan Turing [this message]
2008-08-03 14:11 ` Daniel Jacobowitz
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=74d1018e0808030540t1d782b6oc76b5314ecfcfa9c@mail.gmail.com \
--to=mashkochit@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