2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
authorJeff Johnston <jjohnstn@redhat.com>
Wed, 26 Feb 2003 21:41:18 +0000 (21:41 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Wed, 26 Feb 2003 21:41:18 +0000 (21:41 +0000)
        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.

gdb/ChangeLog
gdb/dbxread.c

index 837d91430e174332b9683a455899e6f0b370cf09..df2cb2fce4bdb5d056428b2f539764b17d7899e8 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2003-02-26  Michael Chastain  <mec@shout.net>
 
        * configure: Regenerate with autoconf 000227.
index 11d038e0c78767ba2eebb1e80b40fb794b4fb65b..d8135539b168b66e86b80677eb749d56570928c3 100644 (file)
@@ -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 ();
 
This page took 0.032784 seconds and 4 git commands to generate.