diff options
author | Daniel Jacobowitz <drow@false.org> | 2010-01-28 22:07:58 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2010-01-28 22:07:58 +0000 |
commit | d37346f037e49c0ce3c4875a828fe1df85331638 (patch) | |
tree | 587e761e90c3c16a2c61c7c177a19d8fa5dc5159 /gdb/ppc-linux-tdep.c | |
parent | 09be49c9dd141a814022c8302f9d1d57349a1eda (diff) | |
download | gdb-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/ppc-linux-tdep.c')
-rw-r--r-- | gdb/ppc-linux-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 36cedf1..fae5ab2 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -1421,7 +1421,8 @@ ppu2spu_sniffer (const struct frame_unwind *self, struct ppu2spu_cache *cache = FRAME_OBSTACK_CALLOC (1, struct ppu2spu_cache); - struct regcache *regcache = regcache_xmalloc (data.gdbarch); + struct address_space *aspace = get_frame_address_space (this_frame); + struct regcache *regcache = regcache_xmalloc (data.gdbarch, aspace); struct cleanup *cleanups = make_cleanup_regcache_xfree (regcache); regcache_save (regcache, ppu2spu_unwind_register, &data); discard_cleanups (cleanups); |