aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-29 16:55:29 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-29 16:55:29 +0000
commit025abdfbd3a4e93dd0812c695a36ecbeeae3f1f1 (patch)
tree97835cb720877ee55a337358f8ba6f14accf6384 /gdb/symtab.h
parenta8c2562115a97df3309bf74b101ef3c21e0914fb (diff)
downloadfsf-binutils-gdb-025abdfbd3a4e93dd0812c695a36ecbeeae3f1f1.zip
fsf-binutils-gdb-025abdfbd3a4e93dd0812c695a36ecbeeae3f1f1.tar.gz
fsf-binutils-gdb-025abdfbd3a4e93dd0812c695a36ecbeeae3f1f1.tar.bz2
* symtab.h: Add comments about line numbers.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 4a9406c..de0d110 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -722,10 +722,9 @@ struct symtab
int nlines;
- /* The Nth element of this array is the position of the
- (N-1)th line of the source file. "position" means something
- we can lseek() to; it is not guaranteed to be useful any other
- way. */
+ /* line_charpos[N] is the position of the (N-1)th line of the
+ source file. "position" means something we can lseek() to; it
+ is not guaranteed to be useful any other way. */
int *line_charpos;
@@ -988,7 +987,12 @@ install_minimal_symbols PARAMS ((struct objfile *));
struct symtab_and_line
{
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;
+
CORE_ADDR pc;
CORE_ADDR end;
};