Code cleanup: dwarf2read.c: Add data_buf::append_uint
authorPedro Alves <palves@redhat.com>
Sat, 10 Jun 2017 15:51:14 +0000 (16:51 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 12 Jun 2017 16:06:25 +0000 (17:06 +0100)
commitc2f134ac418eafca850e7095d789a01ec1142fc4
tree245250ffdc309062637eb7f2c8b0434797dc8fbf
parenta81e6d4d261b7471428408f4ebba1b8113c16ccf
Code cleanup: dwarf2read.c: Add data_buf::append_uint

This avoids having to specify the integer size twice in the same line.

gdb/ChangeLog:
2017-06-12  Pedro Alves  <palves@redhat.com>

* dwarf2read.c (data_buf::append_space): Rename to...
(data_buf::grow): ... this, and make private.  Adjust all callers.
(data_buf::append_uint): New method.
(add_address_entry, write_one_signatured_type)
(write_psymtabs_to_index): Use it.
gdb/ChangeLog
gdb/dwarf2read.c