STEP_SKIPS_DELAY question, sort of

Andrew Cagney cagney@gnu.org
Wed May 26 17:39:00 GMT 2004


Andrew Cagney wrote:

Ok,

When given:

  N+0: branch foo
  N+2: nop
PC=N (or N+1)
SPC=N+2
would this result in a double single-step leaving PC==foo?  If it does then you've at least got STEP_SKIPS_DELAY like behavior.


Actually, both when PC=N (at the branch instruction) and when PC=N+1 (in the delay slot) a *single* single-step will leave us at PC==foo - the single-step exception fires after the instruction pointed out by SPC has been executed.

I'll go and have a closer look at STEP_SKIPS_DELAY. 
We'll likely need to change that a bit but thats ok.

Andrew





More information about the Gdb-patches mailing list