diff options
author | Pedro Alves <palves@redhat.com> | 2019-06-07 22:45:09 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2019-07-01 14:07:58 +0100 |
commit | ebcc5fb83fb0c6e98db2501c5868ba8cee6dd1f8 (patch) | |
tree | 87214c30bd185cb519d7aef6d14471608577581e /gdb/breakpoint.c | |
parent | fd5bce2ea4716552ce9c3f9fdac7628cbf5a5cd2 (diff) | |
download | binutils-gdb-users/palves/format_strings-experiment.tar.gz |
string_fieldusers/palves/format_strings-experiment
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 77f416eb9ca..e2adb18a9fa 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6193,10 +6193,9 @@ print_one_breakpoint_location (struct breakpoint *b, && breakpoint_condition_evaluation_mode () == condition_evaluation_target) { - uiout->text (" ("); - uiout->field_string ("evaluated-by", - bp_condition_evaluator (b)); - uiout->text (" evals)"); + uiout->message (" (%pF evals)", + string_field ("evaluated-by", + bp_condition_evaluator (b))); } uiout->text ("\n"); } @@ -12752,10 +12751,9 @@ tracepoint_print_one_detail (const struct breakpoint *self, { gdb_assert (self->type == bp_static_tracepoint); - uiout->text ("\tmarker id is "); - uiout->field_string ("static-tracepoint-marker-string-id", - tp->static_trace_marker_id); - uiout->text ("\n"); + uiout->message ("\tmarker id is %pF\n", + string_field ("static-tracepoint-marker-string-id", + tp->static_trace_marker_id)); } } |