This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Don't use deprecated regcache functions


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);
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]