aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-02-26 21:41:18 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-02-26 21:41:18 +0000
commit6b37567ac291dc3e3654102d190f1c75b65b4279 (patch)
tree6a694f3990223c73aa80433d79c2e7c2372da2a9 /gdb/dbxread.c
parentd3e0a5bf3a2bcfe45a14894b585ab3022cbcb753 (diff)
downloadfsf-binutils-gdb-6b37567ac291dc3e3654102d190f1c75b65b4279.zip
fsf-binutils-gdb-6b37567ac291dc3e3654102d190f1c75b65b4279.tar.gz
fsf-binutils-gdb-6b37567ac291dc3e3654102d190f1c75b65b4279.tar.bz2
2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
From Elena Zannoni <ezannoni@redhat.com> * dbxread.c (process_one_symbol): Only record line 0 if one or more sline entries have been seen for the function.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 11d038e..d813553 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -2831,7 +2831,13 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name,
break;
}
- record_line (current_subfile, 0, last_function_start + valu);
+ /* The following check is added before recording line 0 at
+ end of function so as to handle hand-generated stabs
+ which may have an N_FUN stabs at the end of the function, but
+ no N_SLINE stabs. */
+ if (sline_found_in_function)
+ record_line (current_subfile, 0, last_function_start + valu);
+
within_function = 0;
new = pop_context ();