This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Displaced stepping just enable in non-stop mode


On Thu, Oct 16, 2008 at 10:12:37AM +0200, Eli Zaretskii wrote:
>   . Why isn't it better to use displaced stepping, if supported, even
>     if non-stop mode is not in effect?  I think the linkage between
>     the two is confusing and unnecessary.

It is generally good to use displaced stepping.  But in some
circumstances it is slower, and in others it doesn't work at all.  It
requires we have a small scratchpad area on the target which is
writeable and executable.  By default we use the area at _start; this
doesn't work on some simulator targets, on targets which execute code
from ROM or flash memory, or during reverse debugging.

Some of those cases could be fixed by adding a user knob for where to
put the scratchpad, though others can't.

It's linked to non-stop because for non-stop it is required.

I'm not sure what else to call displaced stepping.  "Step around
breakpoints"?

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]