aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-01-28 22:07:58 +0000
committerDaniel Jacobowitz <drow@false.org>2010-01-28 22:07:58 +0000
commitd37346f037e49c0ce3c4875a828fe1df85331638 (patch)
tree587e761e90c3c16a2c61c7c177a19d8fa5dc5159 /gdb/infcall.c
parent09be49c9dd141a814022c8302f9d1d57349a1eda (diff)
downloadgdb-d37346f037e49c0ce3c4875a828fe1df85331638.zip
gdb-d37346f037e49c0ce3c4875a828fe1df85331638.tar.gz
gdb-d37346f037e49c0ce3c4875a828fe1df85331638.tar.bz2
* regcache.c (regcache_xmalloc): Add aspace argument. Use it
for the new regcache. All callers updated. (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. (get_thread_arch_regcache): Do not set aspace here. * regcache.h (regcache_xmalloc): Update declaration. * frame.c, infcall.c, ppc-linux-tdep.c: Calls to regcache_xmalloc updated.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index e736faa..e642894 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -998,7 +998,8 @@ When the function is done executing, GDB will silently stop."),
and the dummy frame has already been popped. */
{
- struct regcache *retbuf = regcache_xmalloc (gdbarch);
+ struct address_space *aspace = get_regcache_aspace (stop_registers);
+ struct regcache *retbuf = regcache_xmalloc (gdbarch, aspace);
struct cleanup *retbuf_cleanup = make_cleanup_regcache_xfree (retbuf);
struct value *retval = NULL;