Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@delorie.com>
To: kettenis@wins.uva.nl
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA]: New function to supply only one x87 register
Date: Fri, 09 Feb 2001 06:59:00 -0000	[thread overview]
Message-ID: <200102091459.JAA00914@indy.delorie.com> (raw)
In-Reply-To: <s3izofwklxu.fsf@debye.wins.uva.nl>

> From: Mark Kettenis <kettenis@wins.uva.nl>
> Date: 09 Feb 2001 14:47:25 +0100
> 
> Hmm, the asymmetry you're seeing is the same asymmetry that exists
> between supply_gregset() and fill_gregset().  Ultimately this
> asymmetry stems from the fact that GDB's register cache is a
> write-through cache (at least that's what I think).  This means that
> it never hurts to supply the full FSAVE/FXSAVE info even if only one
> register is requested, and that is what all other targets that use the
> stuff from i387-nat.c do.  Is there a compelling reason you cannot do
> the same in the go32 target?

I don't know enough about GDB's register cache to feel safe with such
assumptions.  What I'm trying to do is be consistent with the
documented API.  Since target.h's `to_fetch_registers' method says
"fetch register REGNO, or all regs if regno == -1", I'm trying to do
just that and nothing else.

Isn't it dangerous to have functions in the infrastructure with
built-in implicit assumptions that are not documented anywhere, and
only hold because the current application-level code does what it
does?

> PS. Sorry for being so critical about your work.  I really don't want
>     to discourage you.

No need to apologize.  The whole point of an RFA is to draw as much
``friendly fire'' as possible ;-)


  reply	other threads:[~2001-02-09  6:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-08 10:28 Eli Zaretskii
2001-02-09  5:47 ` Mark Kettenis
2001-02-09  6:59   ` Eli Zaretskii [this message]
2001-02-09  8:55     ` Mark Kettenis
2001-02-10  3:42       ` Eli Zaretskii
2001-02-10 14:59         ` Mark Kettenis
2001-02-16  9:33           ` Andrew Cagney

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=200102091459.JAA00914@indy.delorie.com \
    --to=eliz@delorie.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@wins.uva.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