projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/master' into amd-common
[deliverable/binutils-gdb.git]
/
gdb
/
target-debug.h
diff --git
a/gdb/target-debug.h
b/gdb/target-debug.h
index d51754af5919f7ce376d545d7298d005d5c76aac..46d17a359d91ba74e46cc777acedfac8e1e50e66 100644
(file)
--- a/
gdb/target-debug.h
+++ b/
gdb/target-debug.h
@@
-1,6
+1,6
@@
/* GDB target debugging macros
/* GDB target debugging macros
- Copyright (C) 2014-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2014-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-184,6
+184,10
@@
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))
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))
+#define target_debug_print_std_string(X) \
+ target_debug_do_print ((X).c_str ())
+#define target_debug_print_gdb_byte_vector(X) \
+ target_debug_do_print (host_address_to_string (X.data ()))
static void
target_debug_print_struct_target_waitstatus_p (struct target_waitstatus *status)
static void
target_debug_print_struct_target_waitstatus_p (struct target_waitstatus *status)
@@
-209,20
+213,16
@@
target_debug_print_options (int options)
}
static void
}
static void
-target_debug_print_signals (
const unsigned char *
sigs)
+target_debug_print_signals (
gdb::array_view<const unsigned char>
sigs)
{
fputs_unfiltered ("{", gdb_stdlog);
{
fputs_unfiltered ("{", gdb_stdlog);
- if (sigs != NULL)
- {
- int i;
-
- for (i = 0; i < GDB_SIGNAL_LAST; i++)
- if (sigs[i])
- {
- fprintf_unfiltered (gdb_stdlog, " %s",
- gdb_signal_to_name ((enum gdb_signal) i));
- }
- }
+
+ for (size_t i = 0; i < sigs.size (); i++)
+ if (sigs[i] != 0)
+ {
+ fprintf_unfiltered (gdb_stdlog, " %s",
+ gdb_signal_to_name ((enum gdb_signal) i));
+ }
fputs_unfiltered (" }", gdb_stdlog);
}
fputs_unfiltered (" }", gdb_stdlog);
}
This page took
0.030019 seconds
and
4
git commands to generate.