/* GDB target debugging macros
- Copyright (C) 2014-2015 Free Software Foundation, Inc.
+ Copyright (C) 2014-2017 Free Software Foundation, Inc.
This file is part of GDB.
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_bfd_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_VEC_mem_region_s__p(X) \
- target_debug_do_print (host_address_to_string (X))
+#define target_debug_print_mem_region_vector(X) \
+ target_debug_do_print (host_address_to_string (X.data ()))
#define target_debug_print_VEC_static_tracepoint_marker_p__p(X) \
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_const_struct_target_desc_p(X) \
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_enum_btrace_format(X) \
target_debug_do_print (plongest (X))
+#define target_debug_print_enum_record_method(X) \
+ target_debug_do_print (plongest (X))
#define target_debug_print_const_struct_btrace_config_p(X) \
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_const_struct_btrace_target_info_p(X) \
target_debug_do_print (plongest (X))
#define target_debug_print_struct_inferior_p(X) \
target_debug_do_print (host_address_to_string (X))
+#define target_debug_print_enum_remove_bp_reason(X) \
+ target_debug_do_print (plongest (X))
+#define target_debug_print_gdb_disassembly_flags(X) \
+ target_debug_do_print (plongest (X))
+#define target_debug_print_traceframe_info_up(X) \
+ target_debug_do_print (host_address_to_string (X.get ()))
static void
target_debug_print_struct_target_waitstatus_p (struct target_waitstatus *status)
{
- char *str = target_waitstatus_to_string (status);
+ std::string str = target_waitstatus_to_string (status);
- fputs_unfiltered (str, gdb_stdlog);
- xfree (str);
+ fputs_unfiltered (str.c_str (), gdb_stdlog);
}
\f