aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-08-05 08:13:48 +0000
committerAlan Modra <amodra@gmail.com>2008-08-05 08:13:48 +0000
commit7cadeb2c1530f4d4674b13038e7fc451f9b18378 (patch)
tree7a68ea37a804e5d2311ac62fc9533c544ebe8385 /gas/dwarf2dbg.c
parent46f2f11d4c9ae297683194868b3238984bc85750 (diff)
downloadgdb-7cadeb2c1530f4d4674b13038e7fc451f9b18378.zip
gdb-7cadeb2c1530f4d4674b13038e7fc451f9b18378.tar.gz
gdb-7cadeb2c1530f4d4674b13038e7fc451f9b18378.tar.bz2
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.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index b1c96b5..b7857f2 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -525,6 +525,10 @@ dwarf2_directive_file (int dummy ATTRIBUTE_UNUSED)
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)
{
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
output now. */
- if (dwarf2_loc_directive_seen && debug_type != DEBUG_DWARF2)
+ if (dwarf2_loc_directive_seen)
dwarf2_emit_insn (0);
filenum = get_absolute_expression ();
@@ -653,6 +657,7 @@ dwarf2_directive_loc (int dummy ATTRIBUTE_UNUSED)
demand_empty_rest_of_line ();
dwarf2_loc_directive_seen = TRUE;
+ debug_type = DEBUG_NONE;
}
void