From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27113 invoked by alias); 3 Jun 2009 22:07:42 -0000 Received: (qmail 27102 invoked by uid 22791); 3 Jun 2009 22:07:41 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Jun 2009 22:07:35 +0000 Received: from zps77.corp.google.com (zps77.corp.google.com [172.25.146.77]) by smtp-out.google.com with ESMTP id n53M7VX3025641 for ; Wed, 3 Jun 2009 23:07:32 +0100 Received: from qyk41 (qyk41.prod.google.com [10.241.83.169]) by zps77.corp.google.com with ESMTP id n53M5Vuj012870 for ; Wed, 3 Jun 2009 15:07:30 -0700 Received: by qyk41 with SMTP id 41so556271qyk.13 for ; Wed, 03 Jun 2009 15:07:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.110.16 with SMTP id l16mr475917qcp.92.1244066850087; Wed, 03 Jun 2009 15:07:30 -0700 (PDT) In-Reply-To: <23849811.post@talk.nabble.com> References: <23814190.post@talk.nabble.com> <4A242D62.1020604@vmware.com> <23836680.post@talk.nabble.com> <8ac60eac0906021223k613c59d4p4b409686ce785404@mail.gmail.com> <23849811.post@talk.nabble.com> Date: Wed, 03 Jun 2009 22:07:00 -0000 Message-ID: <8ac60eac0906031507v74e98d59q9ed983f498cc4dc4@mail.gmail.com> Subject: Re: Elf debugging From: Paul Pluzhnikov To: maybedoo Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true 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/msg00034.txt.bz2 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