This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] infptrace.c: use regcache_collect
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Elena Zannoni <ezannoni at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 19 Nov 2001 16:36:17 -0500
- Subject: Re: [RFA] infptrace.c: use regcache_collect
- References: <15353.24043.102000.208495@krustylu.cygnus.com>
> 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
>
> * infptrace.c (fetch_register): Dynamically allocate buffer for
> register.
[Grrr]
> (store_register): Use regcache_collect, instead of accessing the
> register buffer directly.
>
Provided this has been tested and doesn't show regressions, I think the
elimination of code like this can be considered pretty obvious. (Only
400 uses of registers[] remaining ...)
Andrew