diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-06 09:26:39 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-06 09:26:39 -0700 |
commit | c2a62a3d8833b824e8f0e36b6a03f348d7d1cd5a (patch) | |
tree | c7cacc35c3700a5064d2696376787a8ce27df12b /gdb/symfile.h | |
parent | 4444f40757a242015973237627283a910f5d9654 (diff) | |
download | gdb-c2a62a3d8833b824e8f0e36b6a03f348d7d1cd5a.zip gdb-c2a62a3d8833b824e8f0e36b6a03f348d7d1cd5a.tar.gz gdb-c2a62a3d8833b824e8f0e36b6a03f348d7d1cd5a.tar.bz2 |
Create new file dwarf2/sect-names.h
This creates a new file, dwarf2/sect-names.h, and moves some
DWARF-specific type definitions from symfile.h into it.
gdb/ChangeLog
2021-03-06 Tom Tromey <tom@tromey.com>
* xcoffread.c: Include sect-names.h.
* symfile.h (struct dwarf2_section_names, struct
dwarf2_debug_sections): Move to dwarf2/sect-names.h.
* dwarf2/sect-names.h: New file, from symfile.h.
* dwarf2/read.c: Include sect-names.h.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index 23e2ad8..7f5545d 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -554,51 +554,7 @@ extern void generic_load (const char *args, int from_tty); /* From dwarf2read.c */ -/* Names for a dwarf2 debugging section. The field NORMAL is the normal - section name (usually from the DWARF standard), while the field COMPRESSED - is the name of compressed sections. If your object file format doesn't - support compressed sections, the field COMPRESSED can be NULL. Likewise, - the debugging section is not supported, the field NORMAL can be NULL too. - It doesn't make sense to have a NULL NORMAL field but a non-NULL COMPRESSED - field. */ - -struct dwarf2_section_names { - const char *normal; - const char *compressed; -}; - -/* List of names for dward2 debugging sections. Also most object file formats - use the standardized (ie ELF) names, some (eg XCOFF) have customized names - due to restrictions. - The table for the standard names is defined in dwarf2read.c. Please - update all instances of dwarf2_debug_sections if you add a field to this - structure. It is always safe to use { NULL, NULL } in this case. */ - -struct dwarf2_debug_sections { - struct dwarf2_section_names info; - struct dwarf2_section_names abbrev; - struct dwarf2_section_names line; - struct dwarf2_section_names loc; - struct dwarf2_section_names loclists; - struct dwarf2_section_names macinfo; - struct dwarf2_section_names macro; - struct dwarf2_section_names str; - struct dwarf2_section_names str_offsets; - struct dwarf2_section_names line_str; - struct dwarf2_section_names ranges; - struct dwarf2_section_names rnglists; - struct dwarf2_section_names types; - struct dwarf2_section_names addr; - struct dwarf2_section_names frame; - struct dwarf2_section_names eh_frame; - struct dwarf2_section_names gdb_index; - struct dwarf2_section_names debug_names; - struct dwarf2_section_names debug_aranges; - /* This field has no meaning, but exists solely to catch changes to - this structure which are not reflected in some instance. */ - int sentinel; -}; - +struct dwarf2_debug_sections; extern int dwarf2_has_info (struct objfile *, const struct dwarf2_debug_sections *, bool = false); |