This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix objdump -g for dwarf


With the addition of -W to objdump, -g no longer works for dwarf because the displays were never enabled.

2012-04-06 Ryan Mansfield <rmansfield@qnx.com>

        * objdump.c (dump_bfd): If defaulting to dwarf call
        dwarf_select_sections_all to enable displays.

Regards,

Ryan Mansfield
Index: objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.191
diff -u -r1.191 objdump.c
--- objdump.c	20 Feb 2012 03:25:21 -0000	1.191
+++ objdump.c	10 Apr 2012 14:53:41 -0000
@@ -3230,6 +3230,7 @@
 	 info in the file, try DWARF instead.  */
       else if (! dump_dwarf_section_info)
 	{
+	  dwarf_select_sections_all (); 
 	  dump_dwarf (abfd);
 	}
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]