aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-04-21 13:19:22 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-04-21 13:19:22 +0000
commit989d9cbac846036a85f6c7160e3ee9a534d0cfc5 (patch)
tree801d0887c5b75e70645dccb0ede7742cd54abffa /gdb/dwarfread.c
parent4c92f0648f8327a6e150832936112142fb7684ca (diff)
downloadgdb-989d9cbac846036a85f6c7160e3ee9a534d0cfc5.zip
gdb-989d9cbac846036a85f6c7160e3ee9a534d0cfc5.tar.gz
gdb-989d9cbac846036a85f6c7160e3ee9a534d0cfc5.tar.bz2
* dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc): Clean up comments.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c49
1 files changed, 21 insertions, 28 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index c059ad9..7b2cf63 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -343,36 +343,29 @@ static CORE_ADDR baseaddr; /* Add to each symbol value */
static struct section_offsets *base_section_offsets;
/* Each partial symbol table entry contains a pointer to private data for the
- read_symtab() function to use when expanding a partial symbol table entry
- to a full symbol table entry. For DWARF debugging info, this data is
- contained in the following structure and macros are provided for easy
- access to the members given a pointer to a partial symbol table entry.
-
- dbfoff Always the absolute file offset to the start of the ".debug"
- section for the file containing the DIE's being accessed.
-
- dbroff Relative offset from the start of the ".debug" access to the
- first DIE to be accessed. When building the partial symbol
- table, this value will be zero since we are accessing the
- entire ".debug" section. When expanding a partial symbol
- table entry, this value will be the offset to the first
- DIE for the compilation unit containing the symbol that
- triggers the expansion.
-
- dblength The size of the chunk of DIE's being examined, in bytes.
-
- lnfoff The absolute file offset to the line table fragment. Ignored
- when building partial symbol tables, but used when expanding
- them, and contains the absolute file offset to the fragment
- of the ".line" section containing the line numbers for the
- current compilation unit.
- */
+ sym_read function to use when expanding a partial symbol table entry
+ to a full symbol table entry. */
struct dwfinfo {
- file_ptr dbfoff; /* Absolute file offset to start of .debug section */
- int dbroff; /* Relative offset from start of .debug section */
- int dblength; /* Size of the chunk of DIE's being examined */
- file_ptr lnfoff; /* Absolute file offset to line table fragment */
+ /* Always the absolute file offset to the start of the ".debug"
+ section for the file containing the DIE's being accessed. */
+ file_ptr dbfoff;
+ /* Relative offset from the start of the ".debug" section to the
+ first DIE to be accessed. When building the partial symbol
+ table, this value will be zero since we are accessing the
+ entire ".debug" section. When expanding a partial symbol
+ table entry, this value will be the offset to the first
+ DIE for the compilation unit containing the symbol that
+ triggers the expansion. */
+ int dbroff;
+ /* The size of the chunk of DIE's being examined, in bytes. */
+ int dblength;
+ /* The absolute file offset to the line table fragment. Ignored
+ when building partial symbol tables, but used when expanding
+ them, and contains the absolute file offset to the fragment
+ of the ".line" section containing the line numbers for the
+ current compilation unit. */
+ file_ptr lnfoff;
};
#define DBFOFF(p) (((struct dwfinfo *)((p)->read_symtab_private))->dbfoff)