On 09/14, Roland McGrath wrote:
>
> Both this traditional in-place method, and the instruction-copying method,
> depend on using single-step. So "stepi" has to work before "break" can work.
Yes, thanks, I already got it.
Oleg.
The traditional method is to restore the original instruction replaced by
the breakpoint in text, single-step over that instruction, then restore the
breakpoint in text, then continue. That method requires all-stop so that
while you are stepping the thread that just hit the breakpoint, you can't
h
Oleg> Now, to continue the tracee, gdb does not restore the
Oleg> original instruction. Instead, it
Oleg> - writes this insn into _start code
Oleg> - changes regs->ip to point to this insn
Oleg> - does single-step to execute this insn
Oleg> - changes regs
On 09/09, Frank Ch. Eigler wrote:
>
> Oleg Nesterov writes:
>
> > [...]
> > But, Jan. Implementing the memory writes does not mean breakpoints
> > automatically start to work!
>
> It approximately should though.
No.
Frank, I guess I did a mistake, I should have read the pdf you sent
me first. I'