Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH]: Don't use deprecated regcache functions
@ 2006-04-11  8:39 David S. Miller
  2006-04-11 13:01 ` Daniel Jacobowitz
  0 siblings, 1 reply; 10+ messages in thread
From: David S. Miller @ 2006-04-11  8:39 UTC (permalink / raw)
  To: gdb-patches


I just noticed the following while investigating a threading
failure on Linux/Sparc.

Any reason we were still using deprecated_read_register_gen()
here?

Otherwise, ok to apply?

2006-04-11  David S. Miller  <davem@sunset.davemloft.net>

	* linux-thread-db.c (thread_db_store_registers): Use
	regcache_raw_collect.

--- linux-thread-db.c.~1~	2006-03-30 08:34:23.000000000 -0800
+++ linux-thread-db.c	2006-04-11 01:30:58.000000000 -0700
@@ -1047,7 +1047,7 @@ thread_db_store_registers (int regno)
     {
       gdb_byte raw[MAX_REGISTER_SIZE];
 
-      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);
     }


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-05-05 22:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-11  8:39 [PATCH]: Don't use deprecated regcache functions David S. Miller
2006-04-11 13:01 ` Daniel Jacobowitz
2006-04-11 21:13   ` David S. Miller
2006-04-12 19:25     ` Michael Snyder
2006-04-13  1:09       ` David S. Miller
2006-04-13  2:41         ` Michael Snyder
2006-04-13  4:05           ` David S. Miller
2006-04-13 18:58             ` Michael Snyder
2006-04-20 17:02     ` Daniel Jacobowitz
2006-05-05 22:43       ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox