diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-18 10:47:48 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-07-28 14:16:50 -0600 |
commit | b382c16682acc33d2e81e5604c9dbd408be376d2 (patch) | |
tree | 46ca3ab29dfb4437dd35db2ab605fbc1ebdf1195 /gdb/scoped-mock-context.h | |
parent | e5213e2c851c295c5e4c3e9b52606c1012029b67 (diff) | |
download | gdb-b382c16682acc33d2e81e5604c9dbd408be376d2.zip gdb-b382c16682acc33d2e81e5604c9dbd408be376d2.tar.gz gdb-b382c16682acc33d2e81e5604c9dbd408be376d2.tar.bz2 |
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.
Diffstat (limited to 'gdb/scoped-mock-context.h')
-rw-r--r-- | gdb/scoped-mock-context.h | 2 |
1 files changed, 1 insertions, 1 deletions
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}; |