* linux-thread-db.c (thread_db_store_registers): Use
authorDavid S. Miller <davem@redhat.com>
Fri, 5 May 2006 22:42:43 +0000 (22:42 +0000)
committerDavid S. Miller <davem@redhat.com>
Fri, 5 May 2006 22:42:43 +0000 (22:42 +0000)
regcache_raw_collect.

gdb/ChangeLog
gdb/linux-thread-db.c

index b5e6667..cd8a66b 100644 (file)
@@ -4,6 +4,8 @@
        regset_from_core_section infrastructure if the target
        supports it.
        * Makefile.in: Update dependencies.
+       * linux-thread-db.c (thread_db_store_registers): Use
+       regcache_raw_collect.
 
 2006-05-05:  Paul Gilliam  <pgilliam@us.ibm.com>
 
index 981bc06..8c081df 100644 (file)
@@ -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);
     }