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: Elena Zannoni <ezannoni at cygnus dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Elena Zannoni <ezannoni at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Date: Mon, 19 Nov 2001 19:03:12 -0500
- Subject: Re: [RFA] infptrace.c: use regcache_collect
- References: <15353.24043.102000.208495@krustylu.cygnus.com><3BF97B51.6030605@cygnus.com>
Andrew Cagney writes:
> > 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
>
I had tested on ppc-linux native. No regressions.
(I am going to get rid of another few...)
Elena