diff options
author | Tristan Gingold <gingold@adacore.com> | 2010-08-03 10:24:18 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2010-08-03 10:24:18 +0000 |
commit | 1c4cc7461da7b3f15443d8e30bc7436364b16286 (patch) | |
tree | 22d9a59adad4584b3bad297f8d924dccf2f753a6 /binutils/dwarf.c | |
parent | 585d1eb8a8b514120431298eeb64510448832e85 (diff) | |
download | gdb-1c4cc7461da7b3f15443d8e30bc7436364b16286.zip gdb-1c4cc7461da7b3f15443d8e30bc7436364b16286.tar.gz gdb-1c4cc7461da7b3f15443d8e30bc7436364b16286.tar.bz2 |
2010-08-03 Tristan Gingold <gingold@adacore.com>
* dwarf.c (display_debug_lines): Mark file argument unused.
Do not try to load .debug_info section.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index c592152..f40bd41 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -3056,20 +3056,13 @@ display_debug_lines_decoded (struct dwarf_section *section, } static int -display_debug_lines (struct dwarf_section *section, void *file) +display_debug_lines (struct dwarf_section *section, void *file ATTRIBUTE_UNUSED) { unsigned char *data = section->start; unsigned char *end = data + section->size; int retValRaw = 1; int retValDecoded = 1; - if (load_debug_info (file) == 0) - { - warn (_("Unable to load/parse the .debug_info section, so cannot interpret the %s section.\n"), - section->name); - return 0; - } - if (do_debug_lines == 0) do_debug_lines |= FLAG_DEBUG_LINES_RAW; |