This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Enhance backtrace for microsoft system DLL calls
On Mon, Dec 10, 2007 at 05:31:35PM +0000, Pedro Alves wrote:
> That's placed there for hot patching, together with 5 bytes of slack before the
> function (the idea is to be able to replace that 2 byte op with a jump to
> 5 bytes back, and patch the 5 bytes with a jump into anywhere in the
> 32-bit address space.)
Interesting.
> You can put a flag in i386's gdbarch_tdep (look in
> i386-tdep.h, and i386-cygwin-tdep.c).
I don't think we need to. Hot patching this way may be MS-specific,
but a two byte NOP is a two byte NOP no matter where you find it.
--
Daniel Jacobowitz
CodeSourcery