Change inferior thread list to be a thread map
[deliverable/binutils-gdb.git] / gdb / gdbarch-selftests.c
index 47f4d99d18c9211f03d4066d72c6dc2ba0bb72f2..6cfaa2cdd13125e0ad95ad37a2c0300cd9e8359d 100644 (file)
@@ -81,9 +81,7 @@ register_to_value_test (struct gdbarch *gdbarch)
   mock_inferior.gdbarch = gdbarch;
   mock_inferior.aspace = &mock_aspace;
   thread_info mock_thread (&mock_inferior, mock_ptid);
-
-  scoped_restore restore_thread_list
-    = make_scoped_restore (&mock_inferior.thread_list, &mock_thread);
+  mock_inferior.thread_map[mock_ptid] = &mock_thread;
 
   /* Add the mock inferior to the inferior list so that look ups by
      target+ptid can find it.  */
This page took 0.022975 seconds and 4 git commands to generate.