Index: dbxread.c =================================================================== RCS file: /cvs/src/src/gdb/dbxread.c,v retrieving revision 1.43 diff -u -r1.43 dbxread.c --- dbxread.c 20 Feb 2003 18:31:14 -0000 1.43 +++ dbxread.c 25 Feb 2003 23:12:07 -0000 @@ -2831,7 +2831,13 @@ 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 ();