Convert dwarf2_section_buffer_overflow_complaint to a method
authorTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:08 +0000 (09:28 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 26 Mar 2020 15:28:13 +0000 (09:28 -0600)
commita0194fa8f23c64bef0f4b4bb4a76e9c64f003169
treef707b0027ddab724df2436ad766715004409eb40
parent3d27bbdb4bc02968ffd86c6b5c331d0e04bc3ed9
Convert dwarf2_section_buffer_overflow_complaint to a method

This changes dwarf2_section_buffer_overflow_complaint to be a method
on dwarf2_section_info.

gdb/ChangeLog
2020-03-26  Tom Tromey  <tom@tromey.com>

* dwarf2/section.h (struct dwarf2_section_info)
<overload_complaint>: Declare.
(dwarf2_section_buffer_overflow_complaint): Don't declare.
* dwarf2/section.c (dwarf2_section_info::overflow_complaint):
Rename from dwarf2_section_buffer_overflow_complaint.
* dwarf2/read.c (skip_one_die, partial_die_info::read)
(skip_form_bytes, dwarf_decode_macro_bytes): Update.
gdb/ChangeLog
gdb/dwarf2/read.c
gdb/dwarf2/section.c
gdb/dwarf2/section.h