[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb
Subject: Re: implementing stepi
From: Daniel Jacobowitz <drow () false ! org>
Date: 2005-04-29 13:03:06
Message-ID: 20050429130305.GA19766 () nevyn ! them ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic