This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCHES: Dumping DWARF info with objdump (Darwin/i386)
On Fri, Sep 30, 2005 at 11:43:24AM +0100, Nick Clifton wrote:
> Hi H. J.
>
> >Here are patches to dump DWARF info with objdump as well as mach-o
> >support. They have to be applied in the order of
> >
> >binutils-darwin-1.patch
> >readelf-reloc-1.patch
> >readelf-gen-8.patch
> >readelf-dwarf-12.patch
> >objdump-dump-6.patch
> >objdump-mach-o-3.patch
>
> Approved - please apply.
>
Done. Here is the doc patch.
H.J.
---
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention -W/--dwarf.
* doc/binutils.texi: Document -W/--dwarf for objdump.
--- binutils/NEWS.dwarf 2005-08-15 07:50:49.000000000 -0700
+++ binutils/NEWS 2005-09-30 09:14:00.000000000 -0700
@@ -1,5 +1,8 @@
-*- text -*-
+* Add "-W/--dwarf" to objdump to display the contents of the DWARF
+debug sections.
+
* Add "-t/--section-details" to readelf to display section details.
"-N/--full-section-name" is deprecated.
--- binutils/doc/binutils.texi.dwarf 2005-08-24 08:26:49.000000000 -0700
+++ binutils/doc/binutils.texi 2005-09-30 09:11:41.000000000 -0700
@@ -1521,6 +1521,7 @@ objdump [@option{-a}|@option{--archive-h
[@option{-r}|@option{--reloc}]
[@option{-R}|@option{--dynamic-reloc}]
[@option{-s}|@option{--full-contents}]
+ [@option{-W}|@option{--dwarf}]
[@option{-G}|@option{--stabs}]
[@option{-t}|@option{--syms}]
[@option{-T}|@option{--dynamic-syms}]
@@ -1845,6 +1846,13 @@ in symbolic form. This is the default e
When disassembling instructions, do not print the instruction bytes.
This is the default when @option{--prefix-addresses} is used.
+@item -W
+@itemx --dwarf
+@cindex DWARF
+@cindex debug symbols
+Displays the contents of the DWARF debug sections in the file, if any
+are present.
+
@item -G
@itemx --stabs
@cindex stab