Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver and multithreaded programs
@ 2002-06-14 19:08 Ankur Sheth
  2002-06-14 19:17 ` Dan Kegel
  2002-06-14 21:04 ` Daniel Jacobowitz
  0 siblings, 2 replies; 5+ messages in thread
From: Ankur Sheth @ 2002-06-14 19:08 UTC (permalink / raw)
  To: 'gdb@sources.redhat.com'; +Cc: Dan Kegel

We tried out today's cvs on a simple remote multithreaded program on x86,
ppc405 and sh4.  

Results :
	x86 - worked fine.
	ppc405 - worked on single threaded program, but on multithreaded
program output zillions of 

			Ignoring packet error, continuing...
			Ignoring packet error, continuing...
		as soon as we tried to step thru main.

	sh4 - worked fine on single threaded program, but on multithreaded
program it output the following message.

			Program received signal SIG32, Real-time event 32.


Has anybody else tried this stuff yet?  

Regards,

ankur


^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: gdbserver and multithreaded programs
@ 2002-06-14 23:17 Dan Kegel
  2002-06-16 20:44 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Kegel @ 2002-06-14 23:17 UTC (permalink / raw)
  To: 'Daniel Jacobowitz ', Ankur Sheth
  Cc: ''gdb@sources.redhat.com' ', Dan Kegel

Daniel Jacobowitz wrote:
> >     ppc405 - worked on single threaded program, but on multithreaded
> > program output zillions of
> >
> >         Ignoring packet error, continuing...
> >         Ignoring packet error, continuing...
> >     as soon as we tried to step thru main.
> >
> >     sh4 - worked fine on single threaded program, but on
> >       multithreaded program it output the following message.
> >
> >         Program received signal SIG32, Real-time event 32.
>
> The "received signal SIG32" means that thread_db did not load.  Most
> likely this means GDB did not find your libraries. On ppc405 I'd guess
> that it found an incorrect copy of the libraries.  Are you setting
> solib-absolute-prefix correctly?

No, we weren't setting it at all.  Thanks for the tip; works much
better now on ppc405.  I did see a strange message
"Program received signal SIGTRAP, Trace/breakpoint trap."
a few times, but in general I'm able to step through a program
that creates lots of threads on ppc405 now.  Huzzah!
(Haven't tried sh4 again yet.)

Still not trivial to build and use in a cross-compiled environment
(what is?), but a good FAQ ought to help that.

Thanks for the fast help!
- Dan


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

end of thread, other threads:[~2002-06-17  3:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-14 19:08 gdbserver and multithreaded programs Ankur Sheth
2002-06-14 19:17 ` Dan Kegel
2002-06-14 21:04 ` Daniel Jacobowitz
2002-06-14 23:17 Dan Kegel
2002-06-16 20:44 ` Daniel Jacobowitz

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