* Dwarf error opening ELF file with GDB 6.3
@ 2005-04-11 4:36 Vijay Padiyar
2005-04-11 12:09 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Vijay Padiyar @ 2005-04-11 4:36 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Dwarf error opening ELF file with GDB 6.3
2005-04-11 4:36 Dwarf error opening ELF file with GDB 6.3 Vijay Padiyar
@ 2005-04-11 12:09 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-04-11 12:09 UTC (permalink / raw)
To: Vijay Padiyar; +Cc: gdb
On Mon, Apr 11, 2005 at 10:07:03AM +0530, Vijay Padiyar wrote:
> 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.
> Dwarf Error: Could not find abbrev number 112 [in module
> /home/chandrashekharp/linux/project/devel/5X-Pilot/bin/LINUX/Executable.out]
This error is generally caused by linker bugs, or a corrupt object.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-11 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-11 4:36 Dwarf error opening ELF file with GDB 6.3 Vijay Padiyar
2005-04-11 12:09 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox