From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 876 invoked by alias); 11 Apr 2005 04:36:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 858 invoked from network); 11 Apr 2005 04:36:40 -0000 Received: from unknown (HELO hotmail.com) (65.54.244.113) by sourceware.org with SMTP; 11 Apr 2005 04:36:40 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 10 Apr 2005 21:36:39 -0700 Message-ID: Received: from 164.164.160.11 by BAY1-DAV9.phx.gbl with DAV; Mon, 11 Apr 2005 04:36:39 +0000 X-Originating-Email: [vijay_padiyar@hotmail.com] X-Sender: vijay_padiyar@hotmail.com From: "Vijay Padiyar" To: Subject: Dwarf error opening ELF file with GDB 6.3 Date: Mon, 11 Apr 2005 04:36:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Apr 2005 04:36:39.0997 (UTC) FILETIME=[0DD006D0:01C53E50] X-SW-Source: 2005-04/txt/msg00054.txt.bz2 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