Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Salter <msalter@redhat.com>
To: ac131313@cygnus.com
Cc: gdb@sources.redhat.com
Subject: Re: gdb/remote - I/O
Date: Thu, 29 Mar 2001 16:27:00 -0000	[thread overview]
Message-ID: <200103261830.f2QIU2614825@deneb.localdomain> (raw)
In-Reply-To: <3ABBDDE4.7C22709D@cygnus.com>

>>>>> Andrew Cagney writes:

> Input:

> For input, GDB would first get the targets attention (<BREAK>) then pass
> down the input and finally resume the target vis:

-> c (continue)
> 	<BREAK>
> 	<- T<sigint> (stop)
-> i<input>
> 	<- OK
-> c (continue)
> 	.....
> 	<- T.... (stop)

> A refinement might see:

-> c (continue)
> 	<BREAK>
> 	<- T<sigint> (stop)
-> c<input> (continue with input)
> 	....
> 	<- T.... (stop)


Andrew,

From a target-side perspective, I'd like to see this as something like:

-> c (continue)
> 	<- T<sigint> (1)
-> i<input>
> 	<- OK
-> c (continue)
> 	.....

(1) Also extended somehow to include indication that target wants
    input and the max size of the input desired.

This eliminates the need for interrupt/Ctrl-C support in the stub.
I've certainly written stubs for boards that didn't have interrupts
on the debug channel and boards which used an NMI button on the board
for that purpose.

It also explicitly tells gdb whether or not the stub supports input
and provides some flow control by having the target tell gdb how
much input it can handle.

Finally, for stubs which do support input, not all apps will want
to use that mechanism and pushing data from the gdb side would
be disruptive for such apps.

--Mark


  reply	other threads:[~2001-03-29 16:27 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 [this message]
     [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
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=200103261830.f2QIU2614825@deneb.localdomain \
    --to=msalter@redhat.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb@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