This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Problem with multiple threads using gdbserver on x86.
On Mon, 2003-06-23 at 18:58, Daniel Jacobowitz wrote:
> I dunno. Probably just providing a stub for ps_get_thread_area
> (spelling?) will be enough to make it work.
there does not seem to be any reference to this function anywhere in the
gdbserver code that i have. maybe i have a very old version but the
source has not changed for the last 12 months or so for the thread-db.c
file. just checked that on cvs. the error seems to come in
thread_db_init() and precisely when it tries to find the new threads.
could someone explain why this code sits inside such a function . isnt
this strange??
static void
linux_look_up_symbols (void)
{
#ifdef USE_THREAD_DB
if (using_threads)
return;
using_threads = thread_db_init ();
#endif
}
>
> On Mon, Jun 23, 2003 at 06:59:51PM +0530, ramana wrote:
> > could you give me a hint as to what needs to be done. i am sure i can find
> > free time to patch it up myself. would give me a chance to fool around with
> > some gdb stuff, things that i have been itching to do .
> > regards
> > Ramana
> >
> > On Mon, 23 Jun 2003 09:16:06 -0400, Daniel Jacobowitz <drow@mvista.com>
> > wrote:
> >
> > >On Mon, Jun 23, 2003 at 06:40:40PM +0530, Ramana Radhakrishnan wrote:
> > >>
> > >>> It works perfectly fine for me. I recommend you ask Red Hat; I know
> > >>> that gdbserver does not yet support NPTL so it's possible that they
> > >>> have disabled threading.
> > >>
> > >>I tried it again with gdbserver and gdb-5.3 rebuilt from the sources .
> > >>with no luck . any other ideas.
> > >
> > >That won't support NPTL either :)
> > >
> > >I suspect gdbserver + threads is not usable on RH9 until someone
> > >patches gdbserver to support it. I don't have a system to try this on
> > >myself, so someone else will have to do it.
> > >
> >
> >
> >
> > --
> > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
> >