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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/scoped-mock-context.h b/gdb/scoped-mock-context.h
index ba3b81e..48fdbac 100644
--- a/gdb/scoped-mock-context.h
+++ b/gdb/scoped-mock-context.h
@@ -51,6 +51,7 @@ struct scoped_mock_context
inferior_list.push_back (mock_inferior);
mock_inferior.thread_list.push_back (mock_thread);
+ mock_inferior.ptid_thread_map[mock_ptid] = &mock_thread;
mock_inferior.gdbarch = gdbarch;
mock_inferior.aspace = mock_pspace.aspace;
mock_inferior.pspace = &mock_pspace;