Elf debugging
maybedoo
maybedoo@gmx.de
Thu Jun 4 13:42:00 GMT 2009
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 <maybedoo@gmx.de> 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.
More information about the Gdb
mailing list