aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-11-05 04:52:39 +0000
committerSimon Marchi <simon.marchi@efficios.com>2023-11-17 20:03:05 +0000
commit413366203156a0483d06a97b3f02b64ba6a215cc (patch)
tree878c8c37a12cf14f063863b4e192ef8fc3bab764 /gdb/infrun.c
parent9c742269ec8507d924d7a0c815155ca5aa21467a (diff)
downloadgdb-413366203156a0483d06a97b3f02b64ba6a215cc.zip
gdb-413366203156a0483d06a97b3f02b64ba6a215cc.tar.gz
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/infrun.c')
-rw-r--r--gdb/infrun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4138d00..08c39eb 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -4356,7 +4356,7 @@ wait_for_inferior (inferior *inf)
Target was running and cache could be stale. This is just a
heuristic. Running threads may modify target memory, but we
don't get any event. */
- target_dcache_invalidate ();
+ target_dcache_invalidate (current_program_space->aspace);
ecs.ptid = do_target_wait_1 (inf, minus_one_ptid, &ecs.ws, 0);
ecs.target = inf->process_target ();
@@ -4605,7 +4605,7 @@ fetch_inferior_event ()
was running and cache could be stale. This is just a heuristic.
Running threads may modify target memory, but we don't get any
event. */
- target_dcache_invalidate ();
+ target_dcache_invalidate (current_program_space->aspace);
scoped_restore save_exec_dir
= make_scoped_restore (&execution_direction,
@@ -5184,7 +5184,7 @@ poll_one_curr_target (struct target_waitstatus *ws)
Target was running and cache could be stale. This is just a
heuristic. Running threads may modify target memory, but we
don't get any event. */
- target_dcache_invalidate ();
+ target_dcache_invalidate (current_program_space->aspace);
event_ptid = target_wait (minus_one_ptid, ws, TARGET_WNOHANG);