Elf debugging
maybedoo
maybedoo@gmx.de
Wed Jun 3 11:31:00 GMT 2009
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.
More information about the Gdb
mailing list