aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-dcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target-dcache.c')
-rw-r--r--gdb/target-dcache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/target-dcache.c b/gdb/target-dcache.c
index eb7d478..76160ef 100644
--- a/gdb/target-dcache.c
+++ b/gdb/target-dcache.c
@@ -79,7 +79,11 @@ target_dcache_get_or_init (void)
target_dcache_aspace_key);
if (dcache == NULL)
- dcache = dcache_init ();
+ {
+ dcache = dcache_init ();
+ set_address_space_data (current_program_space->aspace,
+ target_dcache_aspace_key, dcache);
+ }
return dcache;
}