Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jason R Thorpe <thorpej@wasabisystems.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] i386nbsd_pc_in_sigtramp robustness
Date: Mon, 02 Sep 2002 15:13:00 -0000	[thread overview]
Message-ID: <20020902151314.D6992@dr-evil.shagadelic.org> (raw)
In-Reply-To: <86bs7gt6km.fsf@elgar.kettenis.dyndns.org>; from kettenis@chello.nl on Mon, Sep 02, 2002 at 11:39:05PM +0200

On Mon, Sep 02, 2002 at 11:39:05PM +0200, Mark Kettenis wrote:

 > Just a few thoughts:
 > 
 >  * Doesn't this break things for NetBSD before 1.4?  Did you consider
 >    falling back on the old method?

The old method didn't work on 1.3 anyway, because the VM layout was
different then, i.e the sigtramp start/end were different.  I could
add a disassemble-using version for 1.3, but it hardly seems worth
it at this point.

Heh, just checked, and FWIW, the old method didn't work for 1.4, either;
it used the same VM layout as 1.3.  The VM layout was changed between
1.4 and 1.5; the new VM layout also was in 1.4.2 and 1.4.3.

1.4 did, however, have a slightly different signal trampoline (which
changed based on a kernel option).  I'm going to file a PR to remind
me to audit all of the signal trampoline stuff back to NetBSD 1.4.

 >  * Did you notice any effect on performance?  Reading from a target's
 >    memory can be time-consuming for remote targets.

It certainly didn't seem any slower on my Athlon :-)  Yes, I know reading
memory is time-consuming for remote targets, however, there isn't really
any other sane way to do it, since the VM layout is totally arbitrary and
can be changed by the user.  I'll note that i386-linux also uses the
disassemble method.

Also note that the use of the disassemble-method is going to fade over
time, since post-1.6 NetBSD now uses symbol names to find the trampoline.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>


      reply	other threads:[~2002-09-02 22:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-02  9:34 Jason R Thorpe
2002-09-02 14:39 ` Mark Kettenis
2002-09-02 15:13   ` Jason R Thorpe [this message]

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=20020902151314.D6992@dr-evil.shagadelic.org \
    --to=thorpej@wasabisystems.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /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