Introduce field_unsigned
authorTom Tromey <tromey@adacore.com>
Mon, 1 Jul 2019 18:14:48 +0000 (12:14 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Jul 2019 15:31:18 +0000 (09:31 -0600)
commit1f77b012e61ec11c92a35223fdfed598c6d2f4e9
tree46a7d4bb2e7366a33728a40cfde72f0dfaf5c4fb
parent33eca68072e73d984fc139dde45b8140b94757cb
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.
gdb/ChangeLog
gdb/cli-out.c
gdb/cli-out.h
gdb/disasm.c
gdb/mi/mi-out.c
gdb/mi/mi-out.h
gdb/record-btrace.c
gdb/symfile.c
gdb/ui-out.c
gdb/ui-out.h