summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-04-08 14:59:03 +0000
committerTom Tromey <tromey@redhat.com>2013-04-08 14:59:03 +0000
commit95b23c5ab7a8e876eca6da23a4ccc5aeb340aeec (patch)
tree4991c30f64466d1a8410f68bc5c65e1049ae59ca /binutils
parentf9d5b7d1f86c740775dbe8744b9ab473d5f68e80 (diff)
downloadbinutils-redhat-95b23c5ab7a8e876eca6da23a4ccc5aeb340aeec.tar.gz
* dwarf.c (process_debug_info): Check dwarf_cutoff_level.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/dwarf.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1e4738c267..eeb6a46b5b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,9 @@
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.
(dwarf-mode): Remove autoload.
(dwarf-die-reference): Relax regexp.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 4f5aa2bfe6..2f877e79be 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);