This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objdump --debugging, target=arm-elf
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: objdump --debugging, target=arm-elf
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Thu, 17 Aug 2000 19:23:21 -0400
- Cc: shaunj at gray-interfaces dot com, binutils at sources dot redhat dot com
- References: <200008172208.PAA00750@elmo.cygnus.com>
On Thu, Aug 17, 2000 at 03:08:20PM -0700, Nick Clifton wrote:
> Hi Shaun,
>
> : I'm having a problem with debugging information in my arm-elf target.
> : Firstly, how do the debugging formats differ, and which should I
> : use?
>
> There are two main debug formats supported by the GNU tools: STABS and
> DWARF. Which you use depends upon the toolchain you are using (some
> toolchains only support one of these formats), which language you are
> using (STABS is an older format, and has less support for C++ than
> DWARF), and how big you are prepared to let your binaries become.
> (DWARF debug information tends to occupy more space than STABS).
To be pedantic, by dwarf, you should read dwarf-2. There is a dwarf-1 debug
format as well, which has less C++ support than stabs. The 2 dwarf formats are
philosophically similar, but are different at the bit level.
> In the case of the arm-elf toolchain the default is DWARF (version 2,
> with GNU extensions) and this is the recommended debug format to use.
>
> : And, how can I get the --debugging info from the file?
>
> By using a different tool. Objdump does not (yet) have the ability to
> display DWARF debug information. Instead use the readelf tool (which
> should be in the same directory as the objdump program that you are
> using). The various command line switches starting with -w... can be
> used to display the debug information.
>
> Cheers
> Nick
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482