Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Duffek <nsd@redhat.com>
To: kettenis@wins.uva.nl
Cc: eliz@delorie.com, gdb@sources.redhat.com
Subject: Re: Register cache
Date: Sun, 11 Feb 2001 12:07:00 -0000	[thread overview]
Message-ID: <200102112013.f1BKDpM11302@rtl.cygnus.com> (raw)
In-Reply-To: <200102102237.f1AMbnJ00230@delius.kettenis.local>

On 10-Feb-2001, Mark Kettenis wrote:

>Therefore I propose to make this "official" and change
>the comment on target_fetch_registers() to:
>
>   /* Fetch at least register REGNO, or all regs if REGNO == -1.  */

I think that's a great idea.

>Another question is whether we should make this behaviour (I mean
>having target_fetch_registers() supply all registers it managed to get
>in one go) recommended practice.

I don't agree with that.  There are times when GDB just needs one
register, and it may be much more efficient on some targets to fetch one
register than to fetch all of them.

I think there might be places in GDB that fetch all registers by calling
target_fetch_registers(REGNUM) for each REGNUM.  If so, then I vote for
changing those places to call target_fetch_registers(-1) instead of
recommending against the target_fetch_registers(REGNUM) interface.

Nick


  reply	other threads:[~2001-02-11 12:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-10 14:37 Mark Kettenis
2001-02-11 12:07 ` Nick Duffek [this message]
2001-02-11 23:26   ` Eli Zaretskii
     [not found]     ` <200102121753.f1CHr9t11723@rtl.cygnus.com>
2001-02-12 10:37       ` Eli Zaretskii
2001-02-16 15:21         ` Mark Kettenis
2001-02-17  0:28           ` Eli Zaretskii
2001-02-17  3:19             ` Mark Kettenis
2001-02-13 13:38 ` Andrew Cagney
     [not found] <8AE4B526B977D411841F00A0CC334020052C28@cuz-exchange.sdesigns.net>
     [not found] ` <39AC598A.DFAF67E9@ozemail.com.au>
2001-03-26  6:46   ` Register Cache Andrew Cagney
2001-03-26  7:22     ` Fernando Nasser

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=200102112013.f1BKDpM11302@rtl.cygnus.com \
    --to=nsd@redhat.com \
    --cc=eliz@delorie.com \
    --cc=gdb@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