diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-11-05 04:52:39 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-11-17 20:03:05 +0000 |
commit | 413366203156a0483d06a97b3f02b64ba6a215cc (patch) | |
tree | 878c8c37a12cf14f063863b4e192ef8fc3bab764 /gdb/memattr.c | |
parent | 9c742269ec8507d924d7a0c815155ca5aa21467a (diff) | |
download | fsf-binutils-gdb-413366203156a0483d06a97b3f02b64ba6a215cc.zip fsf-binutils-gdb-413366203156a0483d06a97b3f02b64ba6a215cc.tar.gz fsf-binutils-gdb-413366203156a0483d06a97b3f02b64ba6a215cc.tar.bz2 |
gdb: pass address_space to target dcache functions
A simple refactor to make the reference to current_program_space bubble
up one level. No behavior changes expected.
Change-Id: I237cf2f45ae73c35bcb433ce40e3c03cef6b87e2
Diffstat (limited to 'gdb/memattr.c')
-rw-r--r-- | gdb/memattr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c index 8b0e3ef..44ccd9f 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -30,6 +30,7 @@ #include <algorithm> #include "gdbarch.h" #include "inferior.h" +#include "progspace.h" static std::vector<mem_region> user_mem_region_list, target_mem_region_list; static std::vector<mem_region> *mem_region_list = &target_mem_region_list; @@ -483,7 +484,7 @@ enable_mem_command (const char *args, int from_tty) { require_user_regions (from_tty); - target_dcache_invalidate (); + target_dcache_invalidate (current_program_space->aspace); if (args == NULL || *args == '\0') { /* Enable all mem regions. */ @@ -521,7 +522,7 @@ disable_mem_command (const char *args, int from_tty) { require_user_regions (from_tty); - target_dcache_invalidate (); + target_dcache_invalidate (current_program_space->aspace); if (args == NULL || *args == '\0') { @@ -567,7 +568,7 @@ delete_mem_command (const char *args, int from_tty) { require_user_regions (from_tty); - target_dcache_invalidate (); + target_dcache_invalidate (current_program_space->aspace); if (args == NULL || *args == '\0') { |