This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix objdump -g for dwarf
- From: Ryan Mansfield <rmansfield at qnx dot com>
- To: <binutils at sourceware dot org>
- Date: Tue, 10 Apr 2012 10:57:03 -0400
- Subject: 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);
}
}