Commit 8a2d2f90 by Michael Meissner

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

From-SVN: r2826
parent 454ae940
...@@ -4068,7 +4068,9 @@ function_prologue (file, size) ...@@ -4068,7 +4068,9 @@ function_prologue (file, size)
int tsize = current_frame_info.total_size; int tsize = current_frame_info.total_size;
ASM_OUTPUT_SOURCE_FILENAME (file, DECL_SOURCE_FILE (current_function_decl)); 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; inside_function = 1;
fputs ("\t.ent\t", file); fputs ("\t.ent\t", file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment