This is the mail archive of the
mailing list for the GDB project.
Re: software single step - feature request
> There are a few nits associated with soft single step support, which are
> easy to work around but annoying enough to justify a fix.
Your not alone. This is taken from gdbarch.sh:
# FIXME/cagney/2001-01-18: This should be split in two. A target method
# the target needs software single step. An ISA method to implement it.
# FIXME/cagney/2001-01-18: This should be replaced with something that
# using the breakpoint system instead of blatting memory directly (as
# FIXME/cagney/2001-01-18: The logic is backwards. It should be asking
if the target
# single step. If not, then implement single step using breakpoints.
sig, int insert
> 1. Soft single step is configured per platform (e.g. arm-wince has one
> and generic arm does not), IMHO, it should be provided on per CPU
> 2. It has to be provided for every CPU - may be as part of multi-arch
> 3. It should be run-time configurable - so it should be possible to
> use the same gdb image both with and without soft single step.
> 4. If target supports hw single step it should be possible to configure
> removal of breakpoints before stepping.