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.
This commit is contained in:
parent
9eac9650ce
commit
3d27bbdb4b
@ -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.
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user