Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: "Decker, Paul" <Paul.Decker@analog.com>
Cc: gdb@sources.redhat.com
Subject: Re: implementing stepi
Date: Fri, 29 Apr 2005 15:15:00 -0000	[thread overview]
Message-ID: <20050429130305.GA19766@nevyn.them.org> (raw)
In-Reply-To: <E21A9A52FF03B249B20F0DC563DEBB3118EFF306@nwd2exm3.ad.analog.com>

On Fri, Apr 29, 2005 at 08:49:28AM -0400, Decker, Paul wrote:
> 
> 
> hello everyone,
> 
> I have what I believe is a simple question on the implementation of the
> stepi feature.  Some processors provide a mechanism to step exactly one
> instruction, such as a special bit in a debug control register.  While
> other processors don't provide this capability, and to implement a step,
> breakpoints must be sprinkled in various places, and a run (to the
> breakpoint) performed.   Looking at some of the gdb source, it seems
> that stepi is implemented using the breakpoint method.  In doing a port
> to my custom processor, is it considered ok to use the hardware method
> if available?

No, stepi is implemented in both ways depending on the features of the
target processor.  This is why target_resume takes a "step" argument.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


      reply	other threads:[~2005-04-29 13:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29 13:03 Decker, Paul
2005-04-29 15:15 ` Daniel Jacobowitz [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=20050429130305.GA19766@nevyn.them.org \
    --to=drow@false.org \
    --cc=Paul.Decker@analog.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