aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/section.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-03-26 09:28:08 -0600
committerTom Tromey <tom@tromey.com>2020-03-26 09:28:13 -0600
commita0194fa8f23c64bef0f4b4bb4a76e9c64f003169 (patch)
treef707b0027ddab724df2436ad766715004409eb40 /gdb/dwarf2/section.c
parent3d27bbdb4bc02968ffd86c6b5c331d0e04bc3ed9 (diff)
downloadbinutils-a0194fa8f23c64bef0f4b4bb4a76e9c64f003169.zip
binutils-a0194fa8f23c64bef0f4b4bb4a76e9c64f003169.tar.gz
binutils-a0194fa8f23c64bef0f4b4bb4a76e9c64f003169.tar.bz2
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.
Diffstat (limited to 'gdb/dwarf2/section.c')
-rw-r--r--gdb/dwarf2/section.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/dwarf2/section.c b/gdb/dwarf2/section.c
index 31cb8b9..9714368 100644
--- a/gdb/dwarf2/section.c
+++ b/gdb/dwarf2/section.c
@@ -31,12 +31,11 @@
#include "complaints.h"
void
-dwarf2_section_buffer_overflow_complaint (struct dwarf2_section_info *section)
+dwarf2_section_info::overflow_complaint () const
{
complaint (_("debug info runs off end of %s section"
" [in module %s]"),
- section->get_name (),
- section->get_file_name ());
+ get_name (), get_file_name ());
}
struct dwarf2_section_info *