* 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 b5e66679bfe691b81b27543c0bce5ebd2ef47ef9..cd8a66b7735f7d06e5b8cea5313660faebec3431 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 981bc06680a09f49021b2b48eaccc9d25931bad4..8c081df268434e2d06c59b19a6e578159bc8210b 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);
     }