* dwarf.c (display_debug_lines): If do_debug_lines has not been
authorNick Clifton <nickc@redhat.com>
Fri, 17 Jul 2009 15:19:21 +0000 (15:19 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 17 Jul 2009 15:19:21 +0000 (15:19 +0000)
        set then default to displaying raw .debug_line section contents.

binutils/ChangeLog
binutils/dwarf.c

index 0eedd9d448637305ac39ef531e4883be387927d0..20c69b5bcd39f2d751293eb7f66e8320dbf85788 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-17  Nick Clifton  <nickc@redhat.com>
+
+       * dwarf.c (display_debug_lines): If do_debug_lines has not been
+       set then default to displaying raw .debug_line section contents.
+
 2009-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Support unordered .debug_info references to .debug_ranges.
index 5a42d798e777b332fa04c193d42c37fc59f85fca..18e63ee00bdd9839f6d8d070b01de2b09ff42e60 100644 (file)
@@ -2813,6 +2813,9 @@ display_debug_lines (struct dwarf_section *section, void *file)
       return 0;
     }
 
+  if (do_debug_lines == 0)
+    do_debug_lines |= FLAG_DEBUG_LINES_RAW;
+
   if (do_debug_lines & FLAG_DEBUG_LINES_RAW)
     retValRaw = display_debug_lines_raw (section, data, end);