From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13507 invoked by alias); 3 Jun 2009 11:31:39 -0000 Received: (qmail 13497 invoked by uid 22791); 3 Jun 2009 11:31:38 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Jun 2009 11:31:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MBogt-00008s-PL for gdb@sourceware.org; Wed, 03 Jun 2009 04:31:31 -0700 Message-ID: <23849811.post@talk.nabble.com> Date: Wed, 03 Jun 2009 11:31:00 -0000 From: maybedoo To: gdb@sourceware.org Subject: Re: Elf debugging In-Reply-To: <8ac60eac0906021223k613c59d4p4b409686ce785404@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <23814190.post@talk.nabble.com> <4A242D62.1020604@vmware.com> <23836680.post@talk.nabble.com> <8ac60eac0906021223k613c59d4p4b409686ce785404@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00029.txt.bz2 Hi, I'm sorry this is the first time I'm posting here. Host is a Linux Debian Lenny System and target also the same machine. - gcc version: gcc (Debian 4.3.2-1.1) 4.3.2 - gdb version: GNU gdb 6.8-debian The gdb is the preinstalled on the system. To compile the elf I've used make with the following command: makedefine CFLAGS := $(CPU_OPT) $(DISTRO_CFLAGS) $(CPPFLAGS) -O2 -g -nostdinc -nostdlib -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -Wstrict-aliasing -Wshadow -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer Here is the log how I connected to the elf: (gdb) file /home/sphinx/coreboot/coreboot-v2/targets/emulation/qemu-x86/qemu-x86/normal/coreboot_ram Reading symbols from /home/sphinx/coreboot/coreboot-v2/targets/emulation/qemu-x86/qemu-x86/normal/coreboot_ram...done. (gdb) target remote localhost:1234 Remote debugging using localhost:1234 0x0000fff0 in pci_conf1_read_config32 (pbus=0x0, bus=0, devfn=0, where=0) at /home/sphinx/coreboot/coreboot-v2/src/arch/i386/include/arch/io.h:58 58 __asm__ __volatile__ ("outl %0, %w1" : : "a" (value), "Nd" (port)); (gdb) search elfboot Expression not found (gdb) break elfboot.c:20 No source file named elfboot.c. Make breakpoint pending on future shared library load? (y or [n]) n I've attached the readelf log, hopefully it says something to you. Thanks for your help Paul. Regards, May http://www.nabble.com/file/p23849811/readelf.txt readelf.txt -- View this message in context: http://www.nabble.com/Elf-debugging-tp23814190p23849811.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.