aboutsummaryrefslogtreecommitdiff
path: root/gdb/hpread.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/hpread.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/hpread.c')
-rw-r--r--gdb/hpread.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/gdb/hpread.c b/gdb/hpread.c
index bc8f834..05a659a 100644
--- a/gdb/hpread.c
+++ b/gdb/hpread.c
@@ -99,29 +99,31 @@ struct hpread_symfile_info
} \
else \
*NAMEP = (SYM)->dsfile.name + VT (OBJFILE)
-
+
/* 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 hpuxread this structure contains the offset within the file symbol table
- of first local symbol for this file, and length (in bytes) of the section
- of the symbol table devoted to this file's symbols (actually, the section
- bracketed may contain more than just this file's symbols).
-
- If ldsymlen is 0, the only reason for this thing's existence is the
- dependency list. Nothing else will happen when it is read in. */
-
-#define LDSYMOFF(p) (((struct symloc *)((p)->read_symtab_private))->ldsymoff)
-#define LDSYMLEN(p) (((struct symloc *)((p)->read_symtab_private))->ldsymlen)
-#define SYMLOC(p) ((struct symloc *)((p)->read_symtab_private))
+ sym_read function to use when expanding a partial symbol table entry
+ to a full symbol table entry. */
struct symloc
{
+ /* The offset within the file symbol table of first local symbol for
+ this file. */
+
int ldsymoff;
+
+ /* Length (in bytes) of the section of the symbol table devoted to
+ this file's symbols (actually, the section bracketed may contain
+ more than just this file's symbols). If ldsymlen is 0, the only
+ reason for this thing's existence is the dependency list.
+ Nothing else will happen when it is read in. */
+
int ldsymlen;
};
+#define LDSYMOFF(p) (((struct symloc *)((p)->read_symtab_private))->ldsymoff)
+#define LDSYMLEN(p) (((struct symloc *)((p)->read_symtab_private))->ldsymlen)
+#define SYMLOC(p) ((struct symloc *)((p)->read_symtab_private))
+
/* FIXME: Shouldn't this stuff be in a .h file somewhere? */
/* Nonzero means give verbose info on gdb action. */
extern int info_verbose;