From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Mark Kettenis Cc: gdb@sources.redhat.com, eliz@delorie.com Subject: Re: Register cache Date: Tue, 13 Feb 2001 13:38:00 -0000 Message-id: <3A89991B.805A4A44@cygnus.com> References: <200102102237.f1AMbnJ00230@delius.kettenis.local> X-SW-Source: 2001-02/msg00143.html > 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