From: Yao Qi Date: Wed, 20 Nov 2013 12:59:47 +0000 (+0800) Subject: set_address_space_data if dcache is NULL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b1141e3f3a7d8303f575caf66347f902f6b07ea;p=binutils-gdb.git set_address_space_data if dcache is NULL. gdb: 2013-11-20 Yao Qi * target-dcache.c (target_dcache_get_or_init): Call set_address_space_data if 'dcache' is NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55eac28962b..7a06a87b9c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-11-20 Yao Qi + + * target-dcache.c (target_dcache_get_or_init): Call + set_address_space_data if 'dcache' is NULL. + 2013-11-20 Walfred Tedeschi * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file. diff --git a/gdb/target-dcache.c b/gdb/target-dcache.c index eb7d4781b9d..76160efa96e 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; }