This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH]: Don't use deprecated regcache functions
- From: Daniel Jacobowitz <drow at false dot org>
- To: "David S. Miller" <davem at davemloft dot net>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 11 Apr 2006 09:00:57 -0400
- Subject: Re: [PATCH]: Don't use deprecated regcache functions
- References: <20060411.013909.129717839.davem@davemloft.net>
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