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/target-debug.h | |
parent | e5213e2c851c295c5e4c3e9b52606c1012029b67 (diff) | |
download | binutils-b382c16682acc33d2e81e5604c9dbd408be376d2.zip binutils-b382c16682acc33d2e81e5604c9dbd408be376d2.tar.gz binutils-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/target-debug.h')
-rw-r--r-- | gdb/target-debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h index c2b1db1..ab89c0a 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -89,7 +89,7 @@ #define target_debug_print_LONGEST_p(X) \ target_debug_do_print (phex (*(X), 0)) #define target_debug_print_struct_address_space_p(X) \ - target_debug_do_print (plongest (address_space_num (X))) + target_debug_do_print (plongest ((X)->num ())) #define target_debug_print_struct_bp_target_info_p(X) \ target_debug_do_print (core_addr_to_string ((X)->placed_address)) #define target_debug_print_struct_expression_p(X) \ |