From: Joel Brobecker Date: Tue, 23 Nov 2010 00:29:45 +0000 (+0000) Subject: ravenscar/sparc: cannot fetch registers from non-active thread X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da700e1a614985ef0796b918ba1cdee6bc73ae23;p=binutils-gdb.git ravenscar/sparc: cannot fetch registers from non-active thread gdb/ChangeLog: * ravenscar-sparc-thread.c (supply_register_at_address): Fix passing of buf in call to regcache_raw_supply. --- diff --git a/ChangeLog b/ChangeLog index 3a200254376..3dc2de0080c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-22 Joel Brobecker + + * ravenscar-sparc-thread.c (supply_register_at_address): + Fix passing of buf in call to regcache_raw_supply. + 2010-11-20 Ian Lance Taylor * configure.ac: Only disable a language library if no language needs diff --git a/gdb/ravenscar-sparc-thread.c b/gdb/ravenscar-sparc-thread.c index 197b74515f9..c799e79676a 100644 --- a/gdb/ravenscar-sparc-thread.c +++ b/gdb/ravenscar-sparc-thread.c @@ -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