Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [WIP] TI msp430 CIO support
Date: Tue, 21 May 2013 16:00:00 -0000	[thread overview]
Message-ID: <20130521090045.50db07ea@mesquite.lan> (raw)
In-Reply-To: <87ip2dogvw.fsf@fleche.redhat.com>

On Mon, 20 May 2013 08:38:59 -0600
Tom Tromey <tromey@redhat.com> wrote:

> >>>>> "Kevin" == Kevin Buettner <kevinb@redhat.com> writes:
> 
> Kevin> The debugger based driver uses a simple breakpoint driven
> Kevin> implementation.  The debugger places a breakpoint on a known location
> Kevin> which is always called when debugger-based I/O is to be performed. 
> Kevin> When the breakpoint at that location is hit, the debugger reads the
> Kevin> details of the system call and its parameters from a memory based
> Kevin> buffer.  The debugger writes back the output of the system call to the
> Kevin> same buffer.  (See my patch for the exact details.)
> 
> I was also curious why this wasn't done on the stub side and just have
> the stub emit the output packets.

Doing it in the stub was our recommendation.  However, we didn't write
the stub and the party responsible for it wasn't willing to do it.

> Kevin> One of my early implementations of this functionality used a normal
> Kevin> (but hidden) GDB breakpoint with a command list whose last command
> Kevin> was "continue".  This is similar to the way that dprintf is implemented.
> 
> Another way is to have a hidden breakpoint and override its check_status
> breakpoint_ops method.  Then, have this method always set bs->stop = 0.
> 
> This won't work for dprintf, since dprintf wants various user-visible
> breakpoint tweaks to also work; but I think it would work fine for your
> case.

I'll give this a try.

Thanks,

Kevin


      reply	other threads:[~2013-05-21 16:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17  4:24 Kevin Buettner
2013-05-17  6:36 ` Joel Brobecker
2013-05-17  8:43 ` Yao Qi
2013-05-17 21:44 ` Mike Frysinger
2013-05-17 23:10   ` Kevin Buettner
2013-05-20 14:39 ` Tom Tromey
2013-05-21 16:00   ` Kevin Buettner [this message]

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=20130521090045.50db07ea@mesquite.lan \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /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