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 | 2c37f3c2965253549fadc1d9fa39c4dd08eaf3ee (patch) | |
tree | 17b3410efd28847ad5605eef4bc1f93cc0bbbe8c /gdb/dbxread.c | |
parent | ec44fe89c240dbb18c5dcdb549d99149fb0c73a2 (diff) | |
download | gdb-2c37f3c2965253549fadc1d9fa39c4dd08eaf3ee.tar.gz |
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/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index e9c2a854afb..26be70c18bb 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2741,6 +2741,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name, { /* This N_FUN marks the end of a function. This closes off the current block. */ + record_line (current_subfile, 0, function_start_offset + valu); within_function = 0; new = pop_context (); |