aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.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/frame.c
parent09be49c9dd141a814022c8302f9d1d57349a1eda (diff)
downloadfsf-binutils-gdb-d37346f037e49c0ce3c4875a828fe1df85331638.zip
fsf-binutils-gdb-d37346f037e49c0ce3c4875a828fe1df85331638.tar.gz
fsf-binutils-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/frame.c')
-rw-r--r--gdb/frame.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index fff0554..aaa70da 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -682,7 +682,9 @@ do_frame_register_read (void *src, int regnum, gdb_byte *buf)
struct regcache *
frame_save_as_regcache (struct frame_info *this_frame)
{
- struct regcache *regcache = regcache_xmalloc (get_frame_arch (this_frame));
+ struct address_space *aspace = get_frame_address_space (this_frame);
+ struct regcache *regcache = regcache_xmalloc (get_frame_arch (this_frame),
+ aspace);
struct cleanup *cleanups = make_cleanup_regcache_xfree (regcache);
regcache_save (regcache, do_frame_register_read, this_frame);
discard_cleanups (cleanups);