Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Remote Debugging of a multithreaded application question
@ 2007-03-07 20:18 Jaffer, Bobby
  2007-03-07 20:26 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Jaffer, Bobby @ 2007-03-07 20:18 UTC (permalink / raw)
  To: gdb


Question:

I am trying to debug a multithreaded application on a remote linux
machine from a cygwin environment.  I start the gdbserver on the remote
linux machine.  I then run gdb on cygwin and attach to the gdbserver.  I
then can set a break point anywhere in the source code.  But, if I set a
break point in a function that executes outside the main thread, gdb
will not stop at the break point when gdb runs the executable.  And an
error message shows on the gdbserver side.  Specifically, it says "Child
terminated with signal = 5".  The gdbserver then quits at this point.
Why can't gdb debug the other threads in the application?

My setup:   Remote machine is running open suse 10.2 linux.  Windows
machine is running cygwin.

Thanks,

Bobby


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Remote Debugging of a multithreaded application question
  2007-03-07 20:18 Remote Debugging of a multithreaded application question Jaffer, Bobby
@ 2007-03-07 20:26 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-03-07 20:26 UTC (permalink / raw)
  To: Jaffer, Bobby; +Cc: gdb

On Wed, Mar 07, 2007 at 12:18:23PM -0800, Jaffer, Bobby wrote:
> 
> Question:
> 
> I am trying to debug a multithreaded application on a remote linux
> machine from a cygwin environment.  I start the gdbserver on the remote
> linux machine.  I then run gdb on cygwin and attach to the gdbserver.  I
> then can set a break point anywhere in the source code.  But, if I set a
> break point in a function that executes outside the main thread, gdb
> will not stop at the break point when gdb runs the executable.  And an
> error message shows on the gdbserver side.  Specifically, it says "Child
> terminated with signal = 5".  The gdbserver then quits at this point.
> Why can't gdb debug the other threads in the application?
> 
> My setup:   Remote machine is running open suse 10.2 linux.  Windows
> machine is running cygwin.

Please see the latest GDB manual, which has a section describing this.
It sounds like either you do not have solib-absolute-prefix set, or
you do not have the same libraries available in both systems.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-07 20:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-07 20:18 Remote Debugging of a multithreaded application question Jaffer, Bobby
2007-03-07 20:26 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox