This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Questionable breakpoint stepping code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]