aboutsummaryrefslogtreecommitdiff
path: root/gdb/scoped-mock-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/scoped-mock-context.h')
-rw-r--r--gdb/scoped-mock-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/scoped-mock-context.h b/gdb/scoped-mock-context.h
index 9ad7ebf..5b5f46d 100644
--- a/gdb/scoped-mock-context.h
+++ b/gdb/scoped-mock-context.h
@@ -52,7 +52,7 @@ struct scoped_mock_context
mock_inferior.thread_list.push_back (mock_thread);
mock_inferior.ptid_thread_map[mock_ptid] = &mock_thread;
- mock_inferior.gdbarch = gdbarch;
+ mock_inferior.set_arch (gdbarch);
mock_inferior.aspace = mock_pspace.aspace;
mock_inferior.pspace = &mock_pspace;