This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debugging multithreaded applications


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]