From a0194fa8f23c64bef0f4b4bb4a76e9c64f003169 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 26 Mar 2020 09:28:08 -0600 Subject: 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 * dwarf2/section.h (struct dwarf2_section_info) : 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/dwarf2/section.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gdb/dwarf2/section.h') diff --git a/gdb/dwarf2/section.h b/gdb/dwarf2/section.h index f4ac9af..555efec 100644 --- a/gdb/dwarf2/section.h +++ b/gdb/dwarf2/section.h @@ -94,6 +94,10 @@ struct dwarf2_section_info return size; } + /* Issue a complaint that something was outside the bounds of this + buffer. */ + void overflow_complaint () const; + union { /* If this is a real section, the bfd section. */ @@ -116,7 +120,4 @@ struct dwarf2_section_info bool is_virtual; }; -extern void dwarf2_section_buffer_overflow_complaint - (struct dwarf2_section_info *section); - #endif /* GDB_DWARF2_SECTION_H */ -- cgit v1.1