From b382c16682acc33d2e81e5604c9dbd408be376d2 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 18 Oct 2020 10:47:48 -0600 Subject: Change address_space to use new and delete This changes address_space to use new and delete, and makes some other small C++-ification changes as well, like changing address_space_num to be a method. This patch was needed for the subsequent patch to rewrite the registry system. --- gdb/scoped-mock-context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/scoped-mock-context.h') diff --git a/gdb/scoped-mock-context.h b/gdb/scoped-mock-context.h index b91d43b..a989530 100644 --- a/gdb/scoped-mock-context.h +++ b/gdb/scoped-mock-context.h @@ -38,7 +38,7 @@ struct scoped_mock_context Target mock_target; ptid_t mock_ptid {1, 1}; - program_space mock_pspace {new_address_space ()}; + program_space mock_pspace {new address_space ()}; inferior mock_inferior {mock_ptid.pid ()}; thread_info mock_thread {&mock_inferior, mock_ptid}; -- cgit v1.1