Re: Questionable breakpoint stepping code

Daniel Jacobowitz
2007-11-26T19:24:25Z

On Mon, Nov 26, 2007 at 10:16:27PM +0300, Vladimir Prus wrote:
> > As for your last question, no, I don't believe we approve
> > of ifdefs...
>
> Well, the question, then is -- how do we make this code work
> correctly even if the instruction at PC is not 4 bytes in size?
> Calling disassembler seems a plausible approach.

Don't Do It. Just call error, I suggest. Skipping an instruction
can lead to bizarre failures later.

--
Daniel Jacobowitz
CodeSourcery