* dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
numbers, gdb relies on them to detect the start of the prologue.
This commit is contained in:
parent
8b0d4340d7
commit
ffa554edd7
|
@ -1,3 +1,8 @@
|
|||
2002-04-17 Geoffrey Keating <geoffk@redhat.com>
|
||||
|
||||
* dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
|
||||
numbers, gdb relies on them to detect the start of the prologue.
|
||||
|
||||
2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||
|
||||
* config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
|
||||
|
|
|
@ -237,8 +237,12 @@ dwarf2_gen_line_info (ofs, loc)
|
|||
if (loc->filenum == 0 || loc->line == 0)
|
||||
return;
|
||||
|
||||
/* Don't emit sequences of line symbols for the same line. */
|
||||
if (line == loc->line && filenum == loc->filenum)
|
||||
/* Don't emit sequences of line symbols for the same line when the
|
||||
symbols apply to assembler code. It is necessary to emit
|
||||
duplicate line symbols when a compiler asks for them, because GDB
|
||||
uses them to determine the end of the prologue. */
|
||||
if (debug_type == DEBUG_DWARF2
|
||||
&& line == loc->line && filenum == loc->filenum)
|
||||
return;
|
||||
|
||||
line = loc->line;
|
||||
|
|
Loading…
Reference in New Issue