Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: fche@redhat.com (Frank Ch. Eigler)
To: jtc@redback.com
Cc: GDB Discussion <gdb@sources.redhat.com>
Subject: Re: gdb/remote - I/O
Date: Sat, 07 Apr 2001 16:02:00 -0000	[thread overview]
Message-ID: <o5pueoz53v.fsf@touchme.toronto.redhat.com> (raw)
In-Reply-To: <5md7apvm4c.fsf@jtc.redback.com>

jtc wrote:

: [...]
: Question: Does the remote protocol support systems where other threads
: continue to execute when one being debugged is halted.  [...] But does 
: the protocol itself allow this?  From what I can tell, it can.  If it does
: not, it almost does --- especially when you consider how loosely some 
: of the commands are defined.

While the wire protocol is indeed rather loose, the process model
assumed by the dominant party (gdb) should be respected.  I would
ascribe looseness not to encouraging creative implementations, but to
systemic lack of formality.

If your target requires some mixed halted/running thread states, and
you run into problems with gdb's model, you could consider switching
to a multi-process rather than multi-thread debugging model.


: The proposals wrt. I/O seem to require the target to halt for I/O,
: which precludes enhancing GDB and the debug agents to take full
: advantage of the remote protocol.  I ask whether or not this is 
: desirable?

Is there anything special about I/O in this way?  If your unusual
target, when responding to a ^C/break from gdb, decides to stop just
one thread, it could do the same thing for I/O.  It could suspend the
output-causing thread; it could suspend any old thread for enqueueing
input.


- FChE


  reply	other threads:[~2001-04-07 16:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-23 15:36 Andrew Cagney
2001-03-29 16:27 ` Mark Salter
     [not found]   ` <3ABF9077.DFC22AE7@cygnus.com>
     [not found]     ` <200103261954.f2QJsBg15093@deneb.localdomain>
     [not found]       ` <3ABFA8D1.DA0D2EAE@redhat.com>
     [not found]         ` <3AC0C9DF.CB1BC2D9@cygnus.com>
2001-03-29 16:27           ` Fernando Nasser
2001-03-29 16:27             ` Andrew Cagney
2001-03-29 23:10         ` Todd Whitesel
2001-03-30  9:23           ` Andrew Cagney
     [not found] ` <5mhf0fov3q.fsf@jtc.redback.com>
2001-03-30  9:48   ` Andrew Cagney
2001-04-06 11:28 ` Andrew Cagney
2001-04-06 11:47   ` Fernando Nasser
2001-04-06 12:56     ` J.T. Conklin
2001-04-07 16:02       ` Frank Ch. Eigler [this message]
2001-04-09 10:43         ` J.T. Conklin
2001-05-14  8:55 ` Andrew Cagney

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=o5pueoz53v.fsf@touchme.toronto.redhat.com \
    --to=fche@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jtc@redback.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