Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro_alves@portugalmail.pt>
Cc: Pierre Muller <muller@ics.u-strasbg.fr>, gdb-patches@sourceware.org
Subject: Re: [RFC] Enhance backtrace for microsoft system DLL calls
Date: Mon, 10 Dec 2007 18:08:00 -0000	[thread overview]
Message-ID: <20071210173749.GA30618@caradoc.them.org> (raw)
In-Reply-To: <4053daab0712100931yb44d6e4m51ab3072f1406187@mail.gmail.com>

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


  reply	other threads:[~2007-12-10 17:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-10 16:45 Pierre Muller
2007-12-10 17:37 ` Pedro Alves
2007-12-10 18:08   ` Daniel Jacobowitz [this message]
2007-12-10 18:41 ` Pedro Alves
2007-12-11 10:44 ` Mark Kettenis
2007-12-11 17:29   ` Pierre Muller
2008-01-14 10:16     ` [RFC-v2] " Pierre Muller
2008-01-24  0:52       ` Pedro Alves
2008-01-24 17:51       ` Mark Kettenis
2008-01-25 14:16         ` [RFA] i386-tdep.c: Add i386_skip_noop function Pierre Muller
2008-01-25 16:38           ` Joel Brobecker
2008-01-25 16:46             ` [RFA] i386-tdep.c: Add i386_skip_noop function; updated Pierre Muller
2008-01-25 17:05               ` Mark Kettenis
2008-01-25 17:26                 ` Joel Brobecker
2008-01-25 18:50                 ` Pierre Muller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071210173749.GA30618@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    --cc=pedro_alves@portugalmail.pt \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox