Provide the "Base CPU" in output of "info task" (if set by runtime).
[deliverable/binutils-gdb.git] / gdb / target-debug.h
index 8a32810be83c7f5f4a35c0768ecf120bd4de0fbb..14196b444355436dc7b14ca8c79568151a78c891 100644 (file)
@@ -1,6 +1,6 @@
 /* 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_struct_btrace_data_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 (host_address_to_string (X))
+#define target_debug_print_enum_target_hw_bp_type(X) \
+  target_debug_do_print (plongest (X))
+#define target_debug_print_enum_bptype(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
@@ -182,7 +201,10 @@ target_debug_print_signals (unsigned char *sigs)
 
       for (i = 0; i < GDB_SIGNAL_LAST; i++)
        if (sigs[i])
-         fprintf_unfiltered (gdb_stdlog, " %s", gdb_signal_to_name (i));
+         {
+           fprintf_unfiltered (gdb_stdlog, " %s",
+                               gdb_signal_to_name ((enum gdb_signal) i));
+         }
     }
   fputs_unfiltered (" }", gdb_stdlog);
 }
This page took 0.049141 seconds and 4 git commands to generate.