mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
PR gas/6656
* dwarf2dbg.c (dwarf2_directive_file): Disable gas generated debug info if we see compiler generated debug info. (dwarf2_directive_loc): Likewise. Remove redundant debug_type test.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2008-08-05 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
PR gas/6656
|
||||||
|
* dwarf2dbg.c (dwarf2_directive_file): Disable gas generated
|
||||||
|
debug info if we see compiler generated debug info.
|
||||||
|
(dwarf2_directive_loc): Likewise. Remove redundant debug_type test.
|
||||||
|
|
||||||
2008-08-04 Alan Modra <amodra@bigpond.net.au>
|
2008-08-04 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* dwarf2dbg.c: Remove superfluous forward function declarations.
|
* dwarf2dbg.c: Remove superfluous forward function declarations.
|
||||||
|
@ -525,6 +525,10 @@ dwarf2_directive_file (int dummy ATTRIBUTE_UNUSED)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* A .file directive implies compiler generated debug information is
|
||||||
|
being supplied. Turn off gas generated debug info. */
|
||||||
|
debug_type = DEBUG_NONE;
|
||||||
|
|
||||||
if (num < (int) files_in_use && files[num].filename != 0)
|
if (num < (int) files_in_use && files[num].filename != 0)
|
||||||
{
|
{
|
||||||
as_bad (_("file number %ld already allocated"), (long) num);
|
as_bad (_("file number %ld already allocated"), (long) num);
|
||||||
@ -543,7 +547,7 @@ dwarf2_directive_loc (int dummy ATTRIBUTE_UNUSED)
|
|||||||
|
|
||||||
/* If we see two .loc directives in a row, force the first one to be
|
/* If we see two .loc directives in a row, force the first one to be
|
||||||
output now. */
|
output now. */
|
||||||
if (dwarf2_loc_directive_seen && debug_type != DEBUG_DWARF2)
|
if (dwarf2_loc_directive_seen)
|
||||||
dwarf2_emit_insn (0);
|
dwarf2_emit_insn (0);
|
||||||
|
|
||||||
filenum = get_absolute_expression ();
|
filenum = get_absolute_expression ();
|
||||||
@ -653,6 +657,7 @@ dwarf2_directive_loc (int dummy ATTRIBUTE_UNUSED)
|
|||||||
|
|
||||||
demand_empty_rest_of_line ();
|
demand_empty_rest_of_line ();
|
||||||
dwarf2_loc_directive_seen = TRUE;
|
dwarf2_loc_directive_seen = TRUE;
|
||||||
|
debug_type = DEBUG_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user