aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r--gdb/target-debug.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h
index 6923608..7477ce6 100644
--- a/gdb/target-debug.h
+++ b/gdb/target-debug.h
@@ -162,14 +162,15 @@
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))
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);
}