This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: debugging multithreaded applications
- From: Daniel Jacobowitz <drow at false dot org>
- To: my Name <interested0815 at yahoo dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 29 Aug 2005 22:12:32 -0400
- Subject: Re: debugging multithreaded applications
- References: <20050816152422.39274.qmail@web50102.mail.yahoo.com>
On Tue, Aug 16, 2005 at 08:24:22AM -0700, my Name wrote:
> If I enter breakpoints into work (line 18), the
> program is stopped if I use gdb (version 6.3). If
> using gdbserver, after starting the process I get
> "Cannot find new threads: capability not available",
> and later the child process is terminated with "signal
> = 5", SIGTRAP
> Since I did not find anything in the manual that said
> whether or not gdbserver can be used with
> multithreaded programs, I hope someone on this mailing
> list can help.
> Is it possible to debug multithreaded programs using
> gdbserver and if so, how?
You shouldn't need to do anything special if they're on the same system
as your gdb. If you're trying to debug on another system, search for
solib-absolute-prefix.
You may also want to give the CVS version a try.
--
Daniel Jacobowitz
CodeSourcery, LLC