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.
This commit is contained in:
Joel Brobecker 2010-11-23 00:29:45 +00:00
parent 200e3f16e7
commit da700e1a61
2 changed files with 6 additions and 1 deletions

View File

@ -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

View 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