GDB: Remote target can now accept the form unix::/path/to/socket.
[deliverable/binutils-gdb.git] / gdb / target-debug.h
index 5f3001b89f0e7c553881cd8cae01b4912efec222..1e904b95d6086785619d4d2f44fe970e314f4323 100644 (file)
@@ -71,7 +71,7 @@
 #define target_debug_print_enum_btrace_error(X) \
   target_debug_do_print (plongest (X))
 #define target_debug_print_ptid_t(X)           \
-  target_debug_do_print (plongest (ptid_get_pid (X)))
+  target_debug_do_print (plongest (X.pid ()))
 #define target_debug_print_struct_gdbarch_p(X) \
   target_debug_do_print (gdbarch_bfd_arch_info (X)->printable_name)
 #define target_debug_print_const_gdb_byte_p(X) \
   target_debug_do_print (plongest (X))
 #define target_debug_print_thread_info_p(X)    \
   target_debug_do_print (host_address_to_string (X))
+#define target_debug_print_thread_info_pp(X)           \
+  target_debug_do_print (host_address_to_string (X))
 
 static void
 target_debug_print_struct_target_waitstatus_p (struct target_waitstatus *status)
@@ -201,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
This page took 0.027471 seconds and 4 git commands to generate.