remote: Fix indentation in remote_new_objfile.
[deliverable/binutils-gdb.git] / gdb / scoped-mock-context.h
index 461c2a353881136f1613c43edc430e4659215257..8d295ba1bbe6c42c50711156d033f582ea738a6f 100644 (file)
@@ -1,6 +1,6 @@
 /* RAII type to create a temporary mock context.
 
-   Copyright (C) 2020 Free Software Foundation, Inc.
+   Copyright (C) 2020-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -64,7 +64,7 @@ struct scoped_mock_context
     /* Push the process_stratum target so we can mock accessing
        registers.  */
     gdb_assert (mock_target.stratum () == process_stratum);
-    push_target (&mock_target);
+    mock_inferior.push_target (&mock_target);
 
     /* Switch to the mock thread.  */
     switch_to_thread (&mock_thread);
This page took 0.023247 seconds and 4 git commands to generate.