aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-04-08 14:59:04 +0000
committerTom Tromey <tromey@redhat.com>2013-04-08 14:59:04 +0000
commit4337774fc87bf9d233a0a8d68cc2cd187d6d48df (patch)
treefcad6eec03741efd79c9ab06b9db32b958055f92 /binutils/dwarf.c
parent2e97048ab2b59a9aa2205a52d774260295cc9f9c (diff)
downloadgdb-4337774fc87bf9d233a0a8d68cc2cd187d6d48df.zip
gdb-4337774fc87bf9d233a0a8d68cc2cd187d6d48df.tar.gz
gdb-4337774fc87bf9d233a0a8d68cc2cd187d6d48df.tar.bz2
* dwarf.c (process_debug_info): Check dwarf_cutoff_level.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 4f5aa2b..2f877e7 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);