diff options
author | Tom Tromey <tromey@adacore.com> | 2019-07-01 12:14:48 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-07-15 09:31:18 -0600 |
commit | 1f77b012e61ec11c92a35223fdfed598c6d2f4e9 (patch) | |
tree | 46a7d4bb2e7366a33728a40cfde72f0dfaf5c4fb /gdb/disasm.c | |
parent | Use field_string in more places (diff) | |
download | binutils-gdb-1f77b012e61ec11c92a35223fdfed598c6d2f4e9.tar.gz binutils-gdb-1f77b012e61ec11c92a35223fdfed598c6d2f4e9.tar.bz2 binutils-gdb-1f77b012e61ec11c92a35223fdfed598c6d2f4e9.zip |
Introduce field_unsigned
This adds field_unsigned and changes various places using field_fmt
with "%u" to use this instead. This also replaces an existing
equivalent helper function in record-btrace.c.
2019-07-15 Tom Tromey <tromey@adacore.com>
* mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
* mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
* cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
* cli-out.c (cli_ui_out::do_field_int): New method.
* ui-out.c (ui_out::field_unsigned): New method.
* symfile.c (generic_load): Use field_unsigned.
(print_transfer_performance): Likewise.
* record-btrace.c (ui_out_field_uint): Remove.
(btrace_call_history_insn_range, btrace_call_history): Use
field_unsigned.
* disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
field_unsigned.
* ui-out.h (class ui_out) <field_unsigned>: New method.
<do_field_unsigned>: Likewise.
Diffstat (limited to 'gdb/disasm.c')
-rw-r--r-- | gdb/disasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/disasm.c b/gdb/disasm.c index 4e51bc5f6f6..5e1dd6e3a3d 100644 --- a/gdb/disasm.c +++ b/gdb/disasm.c @@ -209,7 +209,7 @@ gdb_pretty_print_disassembler::pretty_print_insn (struct ui_out *uiout, if (insn->number != 0) { - uiout->field_fmt ("insn-number", "%u", insn->number); + uiout->field_unsigned ("insn-number", insn->number); uiout->text ("\t"); } |