* symtab.h: Add comments about line numbers.

This commit is contained in:
Jim Kingdon 1993-06-29 16:55:29 +00:00
parent a8c2562115
commit 025abdfbd3
1 changed files with 8 additions and 4 deletions

View File

@ -722,10 +722,9 @@ struct symtab
int nlines; int nlines;
/* The Nth element of this array is the position of the /* line_charpos[N] is the position of the (N-1)th line of the
(N-1)th line of the source file. "position" means something source file. "position" means something we can lseek() to; it
we can lseek() to; it is not guaranteed to be useful any other is not guaranteed to be useful any other way. */
way. */
int *line_charpos; int *line_charpos;
@ -988,7 +987,12 @@ install_minimal_symbols PARAMS ((struct objfile *));
struct symtab_and_line struct symtab_and_line
{ {
struct symtab *symtab; struct symtab *symtab;
/* Line number. Line numbers start at 1 and proceed through symtab->nlines.
0 is never a valid line number; it is used to indicate that line number
information is not available. */
int line; int line;
CORE_ADDR pc; CORE_ADDR pc;
CORE_ADDR end; CORE_ADDR end;
}; };