aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-debug.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-10-18 10:47:48 -0600
committerTom Tromey <tom@tromey.com>2022-07-28 14:16:50 -0600
commitb382c16682acc33d2e81e5604c9dbd408be376d2 (patch)
tree46ca3ab29dfb4437dd35db2ab605fbc1ebdf1195 /gdb/target-debug.h
parente5213e2c851c295c5e4c3e9b52606c1012029b67 (diff)
downloadbinutils-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.h2
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) \