/* GDB target debugging macros
- Copyright (C) 2014-2020 Free Software Foundation, Inc.
+ Copyright (C) 2014-2021 Free Software Foundation, Inc.
This file is part of GDB.
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_struct_ui_file_p(X) \
target_debug_do_print (host_address_to_string (X))
-#define target_debug_print_target_section_table_p(X) \
+#define target_debug_print_const_target_section_table_p(X) \
target_debug_do_print (host_address_to_string (X))
#define target_debug_print_void_p(X) \
target_debug_do_print (host_address_to_string (X))
fputs_unfiltered (" }", gdb_stdlog);
}
+static void
+target_debug_print_size_t (size_t size)
+{
+ fprintf_unfiltered (gdb_stdlog, "%s", pulongest (size));
+}
+
+static void
+target_debug_print_const_gdb_byte_vector_r (const gdb::byte_vector &vector)
+{
+ fputs_unfiltered ("{", gdb_stdlog);
+
+ for (size_t i = 0; i < vector.size (); i++)
+ {
+ fprintf_unfiltered (gdb_stdlog, " %s",
+ phex_nz (vector[i], 1));
+ }
+ fputs_unfiltered (" }", gdb_stdlog);
+}
+
+static void
+target_debug_print_gdb_byte_vector_r (gdb::byte_vector &vector)
+{
+ target_debug_print_const_gdb_byte_vector_r (vector);
+}
#endif /* TARGET_DEBUG_H */