Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: John Yates <jyates@netezza.com>
Cc: PAUL GILLIAM <pgilliam@us.ibm.com>, gdb@sources.redhat.com
Subject: Re: Instrcutions that must not be stepped.
Date: Fri, 09 Jun 2006 14:28:00 -0000	[thread overview]
Message-ID: <20060609141210.GA28306@nevyn.them.org> (raw)
In-Reply-To: <4D87F853B8020F4888896B1507DC0F090268F0@mail2.netezza.com>

On Fri, Jun 09, 2006 at 09:49:54AM -0400, John Yates wrote:
> Daniel Jacobowitz writes:
> 
> > Nope.  You'd have to add one.  And, you'd have to be able to tell
> > whether you were in the middle of a GDB-automated step or a user stepi;
> > stepping multiple instructions when the user asked for one is probably
> > just confusing.
> 
> To whom or what?  I would be quite happy if gdb did the right thing
> and output a message to the effect that an atomic sequence was indeed
> treated as atomic.  That is the count of instructions stepped changed
> by one for any number of failed attempts and then one final successful
> execution of the entire atomic sequence.

If we warn about it, then it's not so confusing :-P

There are plenty of other potential issues here.  For instance, we'd
need to check for branches inside the atomic sequence; otherwise we
could completely lose control.

> > Reading the instruction before stepping is going to slow down single
> > stepping.  Is there some other way we can handle this?
> 
> The overhead could be ameliorated by having the status returned from
> a completed single step include an optional assertion that if gdb were
> to step again without altering the pc or the contents of memory at the
> address referenced by the pc then that step would initiate an atomic
> sequence.

There is no way to do this for most targets.  Paul's probably talking
about native PowerPC GDB, not any kind of remote stub.  Even at that
point, I think the performance impact here would be unacceptable; the
repeated single step path is one of the few time-sensitive bits of GDB.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-06-09 14:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-09 14:12 John Yates
2006-06-09 14:28 ` Daniel Jacobowitz [this message]
2006-06-10  0:33   ` PAUL GILLIAM
  -- strict thread matches above, loose matches on Subject: below --
2006-06-08  2:27 PAUL GILLIAM
2006-06-08  3:50 ` Daniel Jacobowitz
2006-06-16  4:36   ` PAUL GILLIAM
2006-06-17 12:26     ` PAUL GILLIAM
2006-06-18  4:57       ` Mark Kettenis
2006-06-20 20:13         ` PAUL GILLIAM
2006-06-20 22:53           ` Paul Koning
2006-06-20 23:34             ` PAUL GILLIAM
2006-06-21  1:17               ` Daniel Jacobowitz

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=20060609141210.GA28306@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=jyates@netezza.com \
    --cc=pgilliam@us.ibm.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