Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Vijay Padiyar" <vijay_padiyar@hotmail.com>
To: <gdb@sources.redhat.com>
Subject: Dwarf error opening ELF file with GDB 6.3
Date: Mon, 11 Apr 2005 04:36:00 -0000	[thread overview]
Message-ID: <BAY1-DAV9EF0935C1EDA2CBE4F44E8B320@phx.gbl> (raw)

Hi there

I am building an executable for the MPC8260 processor. I have built my
toolchain for the 2.6 kernel and MPC8260 target using Kegel's crosstool.

When I try to load the built executable in GDB 6.3 (built for my target), I
get a dwarf error.

My compiler flags are:

For C++ files:

~ $
powerpc-603e-linux-gnu-g++  -finline-limit=7000 -fdollars-in-identifiers -DL
INUX -DLIN_HW -D_GNU_TOOL -D__LINUX -D__BIG_ENDIAN__   -fno-builtin  -msoft-
float -mcpu=603e -Wpointer-arith  -Winline -fPIC -ffunction-sections -fdata-
sections   -Wall  -gdwarf-2 -g2 -D_REENTRANT -DGLBTRACELEVEL=7 -DTRACE_RUNTI
ME_LEVEL=7 -DTRACE_CONSOLE_LEVEL=3 -D__cplusplus -fpermissive -fno-for-scope
 -Woverloaded-virtual -fno-rtti -o File.o -c File.cpp


For C files:

~ $
powerpc-603e-linux-gnu-gcc  -finline-limit=7000 -fdollars-in-identifiers -DL
INUX -DLIN_HW -D_GNU_TOOL -D__LINUX -D__BIG_ENDIAN__   -fno-builtin  -msoft-
float -mcpu=603e -Wpointer-arith  -Winline -fPIC -ffunction-sections -fdata-
sections   -Wall  -gdwarf-2 -g2 -D_REENTRANT -DGLBTRACELEVEL=7 -DTRACE_RUNTI
ME_LEVEL=7 -DTRACE_CONSOLE_LEVEL=3    -Wstrict-prototypes -o File.o -c
File.c


My linker options are:

~ $ powerpc-603e-linux-gnu-g++  -g (all object files here) -o Executable.out


Now, when I try to open this file with GDB, I get an error as follows:

~ $ powerpc-603e-linux-gnu-gdb  Executable.out
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as
"--host=i686-pc-linux-gnu --target=powerpc-603e-linux-gnu"...
Dwarf Error: Could not find abbrev number 112 [in module
/home/chandrashekharp/linux/project/devel/5X-Pilot/bin/LINUX/Executable.out]

(gdb)


Could this be due to some incorrect or misdirected compiler flags? Or
something else? Because I am able to load and debug simple applications like
the ubiquitous "Hello, World!" without any problem.

Please help me out!

Regards

Vijay Padiyar

http://www.vijaypadiyar.eu.tf


             reply	other threads:[~2005-04-11  4:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-11  4:36 Vijay Padiyar [this message]
2005-04-11 12:09 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY1-DAV9EF0935C1EDA2CBE4F44E8B320@phx.gbl \
    --to=vijay_padiyar@hotmail.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox