From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5471 invoked by alias); 4 Jun 2009 13:42:59 -0000 Received: (qmail 5462 invoked by uid 22791); 4 Jun 2009 13:42:59 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_62,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; Thu, 04 Jun 2009 13:42:53 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MCDDX-0007OQ-1Z for gdb@sourceware.org; Thu, 04 Jun 2009 06:42:51 -0700 Message-ID: <23870188.post@talk.nabble.com> Date: Thu, 04 Jun 2009 13:42:00 -0000 From: maybedoo To: gdb@sourceware.org Subject: Re: Elf debugging In-Reply-To: <8ac60eac0906031507v74e98d59q9ed983f498cc4dc4@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> <23849811.post@talk.nabble.com> <8ac60eac0906031507v74e98d59q9ed983f498cc4dc4@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/msg00041.txt.bz2 Hmm it's strange that i've no debug information in elfboot.c? Here is the ls from the src directory: may@debian:~/coreboot/coreboot-v2/src/boot$ ls Config.lb elfboot.c filo.c hardwaremain.c selfboot.c Problem is that I need elfboot.c for a breakpoint. Thanks for your help Paul with readelf. Didn't know that and how to use it. Regards, May Paul Pluzhnikov-4 wrote: > > On Wed, Jun 3, 2009 at 4:31 AM, maybedoo wrote: > >> (gdb) break elfboot.c:20 >> No source file named elfboot.c. > > Are you sure this isn't a "pilot error"? > I see that you have selfboot.c, but no elfboot.c. > > Here are the files which have debug info (and which you shouldn't have > problems setting breakpoints in): > > $ grep 'DW_AT_name.*\.c' readelf.txt | sed -e 's/.*: //' -e 's:.*//::' > > src/southbridge/intel/i82371eb/i82371eb_smbus.c > src/console/uart8250_console.c > src/southbridge/intel/i82371eb/i82371eb.c > src/southbridge/intel/i82371eb/i82371eb_usb.c > src/southbridge/intel/i82371eb/i82371eb_reset.c > src/southbridge/intel/i82371eb/i82371eb_isa.c > src/southbridge/intel/i82371eb/i82371eb_ide.c > src/mainboard/emulation/qemu-x86/mainboard.c > src/arch/i386/lib/exception.c > src/devices/root_device.c > src/lib/uart8250.c > src/console/printk.c > src/pc80/mc146818rtc.c > src/boot/hardwaremain.c > src/devices/pci_device.c > src/lib/version.c > src/devices/cardbus_device.c > src/pc80/keyboard.c > src/devices/pciexp_device.c > src/devices/pci_ops.c > src/console/console.c > src/devices/hypertransport.c > src/devices/device.c > src/lib/malloc.c > src/devices/device_util.c > src/devices/../../util/x86emu/x86.c > src/pc80/isa-dma.c > src/lib/memmove.c > src/lib/memcpy.c > src/lib/memset.c > src/console/vtxprintf.c > static.c > src/arch/i386/boot/tables.c > src/boot/selfboot.c > src/devices/pci_rom.c > src/arch/i386/boot/coreboot_table.c > src/devices/pcix_device.c > src/cpu/emulation/qemu-x86/northbridge.c > src/mainboard/emulation/qemu-x86/irq_tables.c > src/devices/../../util/x86emu/x86_interrupts.c > src/arch/i386/boot/boot.c > src/lib/delay.c > src/arch/i386/lib/pci_ops_auto.c > src/console/vsprintf.c > src/arch/i386/lib/pci_ops_conf2.c > src/lib/cbfs.c > option_table.c > src/lib/compute_ip_checksum.c > src/lib/fallback_boot.c > src/arch/i386/boot/pirq_routing.c > src/arch/i386/boot/multiboot.c > src/lib/lzma.c > src/arch/i386/lib/pci_ops_conf1.c > > Cheers, > -- > Paul Pluzhnikov > > -- View this message in context: http://www.nabble.com/Elf-debugging-tp23814190p23870188.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.