public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Move dwarf2_section_buffer_overflow_complaint to dwarf2/section.c Date: Thu, 26 Mar 2020 15:32:53 +0000 (GMT) [thread overview] Message-ID: <20200326153253.F3C4F385F020@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3d27bbdb4bc02968ffd86c6b5c331d0e04bc3ed9 commit 3d27bbdb4bc02968ffd86c6b5c331d0e04bc3ed9 Author: Tom Tromey <tom@tromey.com> Date: Thu Mar 26 09:28:08 2020 -0600 Move dwarf2_section_buffer_overflow_complaint to dwarf2/section.c This moves dwarf2_section_buffer_overflow_complaint to dwarf2/section.c. gdb/ChangeLog 2020-03-26 Tom Tromey <tom@tromey.com> * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): Declare. * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): Move from read.c. * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move to section.c. Diff: --- gdb/ChangeLog | 9 +++++++++ gdb/dwarf2/read.c | 9 --------- gdb/dwarf2/section.c | 10 ++++++++++ gdb/dwarf2/section.h | 3 +++ 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d58750472c..aa462adb6f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2020-03-26 Tom Tromey <tom@tromey.com> + + * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): + Declare. + * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): + Move from read.c. + * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move + to section.c. + 2020-03-26 Tom Tromey <tom@tromey.com> * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 4a17a7ea98d..f42058fb774 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -1711,15 +1711,6 @@ dwarf2_const_value_length_mismatch_complaint (const char *arg1, int arg2, arg1, arg2, arg3); } -static void -dwarf2_section_buffer_overflow_complaint (struct dwarf2_section_info *section) -{ - complaint (_("debug info runs off end of %s section" - " [in module %s]"), - section->get_name (), - section->get_file_name ()); -} - static void dwarf2_macro_malformed_definition_complaint (const char *arg1) { diff --git a/gdb/dwarf2/section.c b/gdb/dwarf2/section.c index 5e33809117d..31cb8b9b2e7 100644 --- a/gdb/dwarf2/section.c +++ b/gdb/dwarf2/section.c @@ -28,6 +28,16 @@ #include "dwarf2/section.h" #include "gdb_bfd.h" #include "objfiles.h" +#include "complaints.h" + +void +dwarf2_section_buffer_overflow_complaint (struct dwarf2_section_info *section) +{ + complaint (_("debug info runs off end of %s section" + " [in module %s]"), + section->get_name (), + section->get_file_name ()); +} struct dwarf2_section_info * dwarf2_section_info::get_containing_section () const diff --git a/gdb/dwarf2/section.h b/gdb/dwarf2/section.h index 8ddedcaf761..f4ac9af311e 100644 --- a/gdb/dwarf2/section.h +++ b/gdb/dwarf2/section.h @@ -116,4 +116,7 @@ struct dwarf2_section_info bool is_virtual; }; +extern void dwarf2_section_buffer_overflow_complaint + (struct dwarf2_section_info *section); + #endif /* GDB_DWARF2_SECTION_H */
reply other threads:[~2020-03-26 15:32 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200326153253.F3C4F385F020@sourceware.org \ --to=tromey@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).