diff options
author | Yao Qi <yao@codesourcery.com> | 2013-11-20 20:59:47 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-11-20 21:15:57 +0800 |
commit | 6b1141e3f3a7d8303f575caf66347f902f6b07ea (patch) | |
tree | 7527940ef464e53221dc2d939c849c048612f8f7 /gdb/target-dcache.c | |
parent | 60650f2e2f40dc992f12647ee001ef87eae13f2e (diff) | |
download | gdb-6b1141e3f3a7d8303f575caf66347f902f6b07ea.zip gdb-6b1141e3f3a7d8303f575caf66347f902f6b07ea.tar.gz gdb-6b1141e3f3a7d8303f575caf66347f902f6b07ea.tar.bz2 |
set_address_space_data if dcache is NULL.
gdb:
2013-11-20 Yao Qi <yao@codesourcery.com>
* target-dcache.c (target_dcache_get_or_init): Call
set_address_space_data if 'dcache' is NULL.
Diffstat (limited to 'gdb/target-dcache.c')
-rw-r--r-- | gdb/target-dcache.c | 6 |
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; } |