ravenscar/sparc: cannot fetch registers from non-active thread
authorJoel Brobecker <brobecker@gnat.com>
Tue, 23 Nov 2010 00:29:45 +0000 (00:29 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 23 Nov 2010 00:29:45 +0000 (00:29 +0000)
gdb/ChangeLog:

        * ravenscar-sparc-thread.c (supply_register_at_address):
        Fix passing of buf in call to regcache_raw_supply.

ChangeLog
gdb/ravenscar-sparc-thread.c

index 3a200254376eb54bd823ce13c63c5dd22fe9456a..3dc2de0080c501ed84ff7ba6b96ec253fe65a8e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * ravenscar-sparc-thread.c (supply_register_at_address):
+       Fix passing of buf in call to regcache_raw_supply.
+
 2010-11-20  Ian Lance Taylor  <iant@google.com>
 
        * configure.ac: Only disable a language library if no language needs
index 197b74515f93548cc817a84fd1dc18729834145f..c799e79676a78e5f638d844e928322507e613206 100644 (file)
@@ -69,7 +69,7 @@ supply_register_at_address (struct regcache *regcache, int regnum,
 
   buf = (char *) alloca (buf_size);
   read_memory (register_addr, buf, buf_size);
-  regcache_raw_supply (regcache, regnum, &buf);
+  regcache_raw_supply (regcache, regnum, buf);
 }
 
 /* Return true if, for a non-running thread, REGNUM has been saved on the