Re: [PATCH]: Don't use deprecated regcache functions

Daniel Jacobowitz
2006-04-11T13:01:03Z

On Tue, Apr 11, 2006 at 01:39:09AM -0700, David S. Miller wrote:
>
> I just noticed the following while investigating a threading
> failure on Linux/Sparc.
>
> Any reason we were still using deprecated_read_register_gen()
> here?

Surely not.

> Otherwise, ok to apply?

> - deprecated_read_register_gen (regno, raw);
> + regcache_raw_collect (current_regcache, regno, raw);
> thread_db_fetch_registers (-1);
> regcache_raw_supply (current_regcache, regno, raw);

I might be mistaken, but what the heck does the call to
thread_db_fetch_registers accomplish? I think nothing.

--
Daniel Jacobowitz
CodeSourcery