diff options
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r-- | gdb/target-debug.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h index 331baf5..1e904b9 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -203,10 +203,9 @@ target_debug_print_struct_target_waitstatus_p (struct target_waitstatus *status) static void target_debug_print_options (int options) { - char *str = target_options_to_string (options); + std::string str = target_options_to_string (options); - fputs_unfiltered (str, gdb_stdlog); - xfree (str); + fputs_unfiltered (str.c_str (), gdb_stdlog); } static void |