diff options
author | Fred Fish <fnf@specifix.com> | 2002-02-22 00:17:13 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2002-02-22 00:17:13 +0000 |
commit | e8717518fcdbb494188cbbfeb57037be3fe7bc11 (patch) | |
tree | edcfe13a8489f62884f395ffd22663c3e848178c /gdb/symtab.c | |
parent | b78c3c1808ccc5ac50423f61c4225cca2e0f7d66 (diff) | |
download | gdb-e8717518fcdbb494188cbbfeb57037be3fe7bc11.zip gdb-e8717518fcdbb494188cbbfeb57037be3fe7bc11.tar.gz gdb-e8717518fcdbb494188cbbfeb57037be3fe7bc11.tar.bz2 |
Approved by Jim Blandy (jimb@redhat.com).
2002-02-21 Fred Fish <fnf@redhat.com>
* dbxread.c (process_one_symbol): When finding an N_FUN symbol
that marks the end of the range of a function, enter a line number
entry that has a line number of zero and a PC offset that matches
the end of the function. This starts a range of PC's for which no
line number information is known.
* symtab.c (find_pc_sect_line): If our best fit is in a range of
PC's for which no line number info is found (line number is zero)
then we didn't find any valid line information.
* symtab.h: Document use of zero line number entry.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 743253f..d03a7c9 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1823,6 +1823,13 @@ find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent) val.end = alt->pc; } } + else if (best->line == 0) + { + /* If our best fit is in a range of PC's for which no line + number info is available (line number is zero) then we didn't + find any valid line information. */ + val.pc = pc; + } else { val.symtab = best_symtab; |