Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RE: Thread Support for remote debugging
@ 2002-01-31 23:32 Korbel, Michal
  2002-02-01  7:45 ` Dan Kegel
  0 siblings, 1 reply; 20+ messages in thread
From: Korbel, Michal @ 2002-01-31 23:32 UTC (permalink / raw)
  To: 'Michael Snyder', Sarnath K - CTD, Chennai.; +Cc: gdb

GDB have remote thread support and works fine with remote multithread
target,
to work with this feature you need have GDBSERVER with remote thread
support.
In the middle of 2001 I was build own version GDBSERVER with remote thread
support (x86-linux target only).
GDB (this version only) have only one restriction, the connection to remote
target can by start only from console window, but after first breakpoints we
can use all GDB features with full mouse support.

----------------------------------------------------------------------------
----------
Michal Korbel - Software engineer
Intel Technology Poland Sp. z o.o.; ul. Slowackiego 173; 80-298 Gdansk
tel. +48 58 34-81-726; fax: +48 58 34-81-505; mobile:+48 603-203-142 
----------------------------------------------------------------------------
----------

-----Original Message-----
From: Michael Snyder [mailto:msnyder@redhat.com]
Sent: Thursday, January 31, 2002 9:41 PM
To: Sarnath K - CTD, Chennai.
Cc: gdb@sources.redhat.com
Subject: Re: Thread Support for remote debugging


"Sarnath K - CTD, Chennai." wrote:
> 
> Hi,
>  I have been browsing the mail archives for
> knowing the current state of thread support
> while doing remote debugging using GDB.
>  Although a lot of discussions have happened,
> I am not able to find the current state of work
> in that area.

By "knowing the current state of thread support",
do you mean finding out whether the remote target
supports thread debugging?  

If GDB sends the remote target a request that the
remote target does not support, there is a well-defined
way in which the remote target should respond (I believe
it is by sending an empty response).

>  I downloaded the latest GDB sources. It doesnt
> support thread commands during remote debugging.
> May I know what is the state of work in this area ?
> Is there any patch available for this ?

I don't understand.  GDB implements the remote protocol
for thread support.  There are queries defined for asking
the target for the current thread ID, changing the current
thread ID, asking for a list of "live" threads, asking 
whether a particular thread is alive...


^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Thread Support for remote debugging
@ 2002-02-01  8:13 Korbel, Michal
  2002-02-01  8:27 ` Dan Kegel
  0 siblings, 1 reply; 20+ messages in thread
From: Korbel, Michal @ 2002-02-01  8:13 UTC (permalink / raw)
  To: 'Dan Kegel', Korbel, Michal; +Cc: gdb

I was use source for gdbserver based on GDB 5.0,
but I was add protocol support based on Quality Quorum source code
(multithread and zbreak packet support)
and move part of multithread support from GDB 5.0 core into gdbserver code.
There are some bugs, but looks and work quite good.
The most importent is: " we can start debug after all thread are created",
there are problems with adding or deleting thread in internal thread list.
----------------------------------------------------------------------------
----------
Michal Korbel - Software engineer
Intel Technology Poland Sp. z o.o.; ul. Slowackiego 173; 80-298 Gdansk
tel. +48 58 34-81-726; fax: +48 58 34-81-505; mobile:+48 603-203-142 
----------------------------------------------------------------------------
----------



-----Original Message-----
From: Dan Kegel [mailto:dank@kegel.com]
Sent: Friday, February 01, 2002 4:51 PM
To: Korbel, Michal
Cc: 'Michael Snyder'; Sarnath K - CTD, Chennai.; gdb@sources.redhat.com
Subject: Re: Thread Support for remote debugging


"Korbel, Michal" wrote:
> 
> GDB have remote thread support and works fine with remote multithread
> target,
> to work with this feature you need have GDBSERVER with remote thread
> support.
> In the middle of 2001 I was build own version GDBSERVER with remote thread
> support (x86-linux target only).
> GDB (this version only) have only one restriction, the connection to
remote
> target can by start only from console window, but after first breakpoints
we
> can use all GDB features with full mouse support.

Now I'm really confused.  What source did you use for gdbserver?

- Dan


^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Thread Support for remote debugging
@ 2002-01-21 22:08 Sarnath K - CTD, Chennai.
  0 siblings, 0 replies; 20+ messages in thread
From: Sarnath K - CTD, Chennai. @ 2002-01-21 22:08 UTC (permalink / raw)
  To: gdb

Hi,
 I had downloaded the remote protocol
spec from "qqi". The spec was too good
and I was directly able to follow the
"gdbserver" code. Thanks.
  Why is it that the "thread support"
for "remote debugging" has long remained
as a paper issue ? What are the real hurdles
stopping the implementation? How long it would
take to add this support for an architecture, say
i386. 

I am quite new to GDB internals. I am currently 
reading the "gdbint" manual. 

 If any1 could throw light on the overall
architecture of GDB ( I know itz a sort of
overkill ) and issues involved in enabling
thread support, I would be grateful.

Thank you,
Sarnath

-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@mvista.com]
Sent: Monday, January 21, 2002 7:37 PM
To: Sarnath K - CTD, Chennai.
Cc: gdb@sources.redhat.com
Subject: Re: Thread Support for remote debugging


On Mon, Jan 21, 2002 at 02:37:20PM +0530, Sarnath K - CTD, Chennai. wrote:
> Hi,
>  I have been browsing the mail archives for
> knowing the current state of thread support
> while doing remote debugging using GDB.
>  Although a lot of discussions have happened,
> I am not able to find the current state of work
> in that area.
>  I downloaded the latest GDB sources. It doesnt
> support thread commands during remote debugging.
> May I know what is the state of work in this area ?
> Is there any patch available for this ?

No, there isn't.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 20+ messages in thread
* Thread Support for remote debugging
@ 2002-01-21  1:11 Sarnath K - CTD, Chennai.
  2002-01-21  6:07 ` Daniel Jacobowitz
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Sarnath K - CTD, Chennai. @ 2002-01-21  1:11 UTC (permalink / raw)
  To: gdb

Hi,
 I have been browsing the mail archives for
knowing the current state of thread support
while doing remote debugging using GDB.
 Although a lot of discussions have happened,
I am not able to find the current state of work
in that area.
 I downloaded the latest GDB sources. It doesnt
support thread commands during remote debugging.
May I know what is the state of work in this area ?
Is there any patch available for this ?

Thanks,
Sarnath


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

end of thread, other threads:[~2002-02-01 17:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-31 23:32 Thread Support for remote debugging Korbel, Michal
2002-02-01  7:45 ` Dan Kegel
  -- strict thread matches above, loose matches on Subject: below --
2002-02-01  8:13 Korbel, Michal
2002-02-01  8:27 ` Dan Kegel
2002-02-01  9:43   ` Quality Quorum
2002-01-21 22:08 Sarnath K - CTD, Chennai.
2002-01-21  1:11 Sarnath K - CTD, Chennai.
2002-01-21  6:07 ` Daniel Jacobowitz
2002-01-21  7:10 ` Quality Quorum
2002-01-21  8:38   ` Andrew Cagney
2002-01-31 12:47 ` Michael Snyder
2002-01-31 15:12   ` Daniel Jacobowitz
2002-01-31 15:22     ` Quality Quorum
2002-01-31 17:22       ` Daniel Jacobowitz
2002-01-31 19:41         ` Quality Quorum
2002-01-31 19:29       ` Andrew Cagney
2002-01-31 19:44         ` Quality Quorum
2002-01-31 15:41     ` Michael Snyder
2002-01-31 17:18       ` Daniel Jacobowitz
2002-01-31 17:21         ` Michael Snyder

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