This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Register cache
- To: Mark Kettenis <kettenis at wins dot uva dot nl>
- Subject: Re: Register cache
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 13 Feb 2001 15:29:15 -0500
- Cc: gdb at sources dot redhat dot com, eliz at delorie dot com
- References: <200102102237.f1AMbnJ00230@delius.kettenis.local>
> Is this really a good idea? I think it is, at least on targets where
> getting at the registers is relatively expensive since it involves a
> system call. 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. */
This behavour is pretty much engrained in GDB so yes, the documentation
should be changed to reflect this.
> 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'd agree with Nick and not go that far. Keep the contract between
GDB's core and the target simple.
Andrew