* dwarf.c (process_debug_info): Check dwarf_cutoff_level.
authorTom Tromey <tromey@redhat.com>
Mon, 8 Apr 2013 14:59:04 +0000 (14:59 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 8 Apr 2013 14:59:04 +0000 (14:59 +0000)
binutils/ChangeLog
binutils/dwarf.c

index 1e4738c2676978551e2baa5a0ced9eebb985db1b..eeb6a46b5ba6ca249e280746cbc3241ac09d6198 100644 (file)
@@ -1,3 +1,7 @@
+2013-04-08  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
+
 2013-04-08  Tom Tromey  <tromey@redhat.com>
 
        * dwarf-mode.el: Bump version number.
index 4f5aa2bfe6b3cc07c55e786999a59f031e47efd4..2f877e79be028d99296b84929735372640f080b0 100644 (file)
@@ -2379,7 +2379,9 @@ process_debug_info (struct dwarf_section *section,
                    break;
                }
 
-             if (!do_loc && die_offset >= dwarf_start_die)
+             if (!do_loc && die_offset >= dwarf_start_die
+                 && (dwarf_cutoff_level == -1
+                     || level < dwarf_cutoff_level))
                printf (_(" <%d><%lx>: Abbrev Number: 0\n"),
                        level, die_offset);