Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: gdb-patches@sources.redhat.com
Subject: Re: remote debugging a multi-threaded program with signal
Date: Sat, 06 Mar 2004 17:11:00 -0000	[thread overview]
Message-ID: <20040306171112.GA23154@nevyn.them.org> (raw)
Message-ID: <20040306171100.Bv2JA4jsQagE-YIC7fY_YQAZWpNAioarPcGuAR81uJA@z> (raw)
In-Reply-To: <20040306.215001.74755311.anemo@mba.ocn.ne.jp>

On Sat, Mar 06, 2004 at 09:50:01PM +0900, Atsushi Nemoto wrote:
> >>>>> On Fri, 5 Mar 2004 11:38:54 -0500, Daniel Jacobowitz <drow@false.org> said:
> 
> >> For gdb without verbose-resume, how about this patch?  With this
> >> patch, gdbserver uses general_thread instead of all_threads.head if
> >> 'CNN' packet was sent without preceding 'HcNN'.
> 
> drow> For one thing, I'm not sure it will work.  But for another, why
> drow> is this case important to you?
> 
> It solves at least my program case, and I believe it breaks nothing.
> 
> I'm still sometimes using (slightly patched) gdb 5.3.  If I can solve
> the problem with verbose-resume disabled in current gdb, I suppose the
> fixes can be backported to gdb 5.3 easily.  I already tried your fix of
> infrun.c with gdb 5.3 and found it solves a part of problem.
> 
> drow> Without vCont the problem is fundamentally insoluble; there will
> drow> always be a case in which gdbserver mis-guesses which thread it
> drow> should continue.  That's why I had to come up with a protocol
> drow> change.
> 
> Hmm... then it might be better to backport all vCont stuff?  Of course
> upgrading to upcoming gdb 6.1 will be the best solution, but I can not
> for now by some internal reason ... :-\

Yes, I would rather you backport vCont than we add hacks to gdbserver
to guess :)  I can tell you that the only changes to support vCont (as
far as I remember, anyway) were in remote.c.  It was pretty simple
client-side.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  parent reply	other threads:[~2004-03-06 17:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03 15:59 Atsushi Nemoto
2004-03-19  0:09 ` Atsushi Nemoto
2004-03-04 14:58   ` Atsushi Nemoto
2004-03-04 22:28   ` Daniel Jacobowitz
2004-03-19  0:09     ` Daniel Jacobowitz
2004-03-19  0:09     ` Atsushi Nemoto
2004-03-05  4:15       ` Atsushi Nemoto
2004-03-19  0:09     ` Atsushi Nemoto
2004-03-05  2:25       ` Atsushi Nemoto
2004-03-19  0:09       ` Atsushi Nemoto
2004-03-05 16:36         ` Atsushi Nemoto
2004-03-05 16:38         ` Daniel Jacobowitz
2004-03-06 12:42           ` Atsushi Nemoto
2004-03-19  0:09             ` Atsushi Nemoto
2004-03-19  0:09             ` Daniel Jacobowitz [this message]
2004-03-06 17:11               ` Daniel Jacobowitz
2004-03-07 14:14               ` Atsushi Nemoto
2004-03-19  0:09                 ` Atsushi Nemoto
2004-03-19  0:09           ` Daniel Jacobowitz
2004-03-19  0:09 ` Atsushi Nemoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040306171112.GA23154@nevyn.them.org \
    --to=drow@false.org \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox