If -g1, do not emit line number at function prologue, it confuses gdb.

From-SVN: r2826
This commit is contained in:
Michael Meissner 1992-12-01 14:39:27 +00:00
parent 454ae94058
commit 8a2d2f90c9
1 changed files with 3 additions and 1 deletions

View File

@ -4068,7 +4068,9 @@ function_prologue (file, size)
int tsize = current_frame_info.total_size;
ASM_OUTPUT_SOURCE_FILENAME (file, DECL_SOURCE_FILE (current_function_decl));
ASM_OUTPUT_SOURCE_LINE (file, DECL_SOURCE_LINE (current_function_decl));
if (debug_info_level != DINFO_LEVEL_TERSE)
ASM_OUTPUT_SOURCE_LINE (file, DECL_SOURCE_LINE (current_function_decl));
inside_function = 1;
fputs ("\t.ent\t", file);