Re: Single stepping in mips
From: Ralf Baechle <hidden>
Date: 2003-06-04 14:32:43
From: Ralf Baechle <hidden>
Date: 2003-06-04 14:32:43
On Wed, Jun 04, 2003 at 10:25:48AM -0400, Daniel Jacobowitz wrote:
quoted
In a more finegrained but also more complicated example, you probably want to insert a breakpoint in the delay slot first and at the second step evaluate the branch's condition and put a breakpoint at the next instruction to be executed. I'm not sure if the current version of gdb does the first step, but it inserts a single breakpoint in the second one only. For branch likely instructions adjust the two steps as necessary.Does that actually work reliably across MIPS processors? I don't believe that it will. I suppose you could re-execute the branch to get the delay slot executed...
It should. Ralf