From: Tom Tromey Date: Mon, 8 Apr 2013 14:59:04 +0000 (+0000) Subject: * dwarf.c (process_debug_info): Check dwarf_cutoff_level. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4337774fc87bf9d233a0a8d68cc2cd187d6d48df;p=binutils-gdb.git * dwarf.c (process_debug_info): Check dwarf_cutoff_level. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1e4738c2676..eeb6a46b5ba 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2013-04-08 Tom Tromey + + * dwarf.c (process_debug_info): Check dwarf_cutoff_level. + 2013-04-08 Tom Tromey * dwarf-mode.el: Bump version number. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 4f5aa2bfe6b..2f877e79be0 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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);