public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdbserver multithread ARM gdb-5.3/5.2
@ 2003-07-31  8:58 Vijay Saha, Noida
  2003-07-31 12:57 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Vijay Saha, Noida @ 2003-07-31  8:58 UTC (permalink / raw)
  To: gdb; +Cc: gdb-patches

Hi 

I am new to gdbserver debugging. So I have got many queries...some of them
may be trivial..so forgive me for that...

I am trying to have a gdbserver for arm-linux target and x86/linux GDB host.
I have tried using the GDB-5.2.1 but that gdbserver doesn't seem to support
mutithreading.

Then I had downloaded the released GDB-5.3  through FTP from
sources.redhat.com.
Even the gdbserver of GDB-5.3 doesn't seem to work correctly for
multithreaded applications.
(gdb) info threads 

It only showed me the main thread ID and no other threads even if the test
application had many threads.
It even didn't stop at any breakpoint set on threads..

I think the released GDB -5.3 gdbserver is supposed to support
multithreading debugging for ARM targets properly.

Moreover, On the GDB-patches mailing list I could find some PATCH mail from
Danil Jacobowitz but it says something about "lin-thread.c"... but in
GDB-5.3 I couldn't find any such file.
Is it a totally new file or I have interpreted something incorrect..??

Is there any patch of gdbserver of gdb-5.3 or gdb-5.2 ??

To debug multithreaded applications, do I need to have the target arm-linux
shared libraries of libthread_db.so.1 on GDB host as well..??
If yes where to copy it..??

Has anyone supported GDB-5.2 gdbserver for thread debugging (remotely) ??

Can someone help me in making myself clear about the patches and GDB
versions for multithreaded debugging through gdbserver ??

Is it possible that I use the gdbserver of GDB-5.3 and the GDB host of
GDB-5.2 ??
I know it won't be recommended but how much is this feasible??


Waiting in anticipation

Thanks and regards
Vijay



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

* Re: gdbserver multithread ARM gdb-5.3/5.2
  2003-07-31  8:58 gdbserver multithread ARM gdb-5.3/5.2 Vijay Saha, Noida
@ 2003-07-31 12:57 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-07-31 12:57 UTC (permalink / raw)
  To: gdb, gdb-patches

On Thu, Jul 31, 2003 at 02:27:25PM +0530, Vijay Saha, Noida wrote:
> Hi 
> 
> I am new to gdbserver debugging. So I have got many queries...some of them
> may be trivial..so forgive me for that...
> 
> I am trying to have a gdbserver for arm-linux target and x86/linux GDB host.
> I have tried using the GDB-5.2.1 but that gdbserver doesn't seem to support
> mutithreading.
> 
> Then I had downloaded the released GDB-5.3  through FTP from
> sources.redhat.com.
> Even the gdbserver of GDB-5.3 doesn't seem to work correctly for
> multithreaded applications.
> (gdb) info threads 
> 
> It only showed me the main thread ID and no other threads even if the test
> application had many threads.
> It even didn't stop at any breakpoint set on threads..
> 
> I think the released GDB -5.3 gdbserver is supposed to support
> multithreading debugging for ARM targets properly.
> 
> Moreover, On the GDB-patches mailing list I could find some PATCH mail from
> Danil Jacobowitz but it says something about "lin-thread.c"... but in
> GDB-5.3 I couldn't find any such file.
> Is it a totally new file or I have interpreted something incorrect..??

No, that file is obsolete.

> Is there any patch of gdbserver of gdb-5.3 or gdb-5.2 ??
> 
> To debug multithreaded applications, do I need to have the target arm-linux
> shared libraries of libthread_db.so.1 on GDB host as well..??
> If yes where to copy it..??

You don't need libthread_db.so.1.  You do need pretty much all other
libraries.  Please look in the manual under solib-absolute-prefix - I'm
not sure it's documented in older versions of the manual, but it's
there now.

> Has anyone supported GDB-5.2 gdbserver for thread debugging (remotely) ??
> 
> Can someone help me in making myself clear about the patches and GDB
> versions for multithreaded debugging through gdbserver ??
> 
> Is it possible that I use the gdbserver of GDB-5.3 and the GDB host of
> GDB-5.2 ??
> I know it won't be recommended but how much is this feasible??

I doubt it will work.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

end of thread, other threads:[~2003-07-31 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31  8:58 gdbserver multithread ARM gdb-5.3/5.2 Vijay Saha, Noida
2003-07-31 12:57 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).