Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: maybedoo <maybedoo@gmx.de>
To: gdb@sourceware.org
Subject: Re: Elf debugging
Date: Wed, 03 Jun 2009 11:31:00 -0000	[thread overview]
Message-ID: <23849811.post@talk.nabble.com> (raw)
In-Reply-To: <8ac60eac0906021223k613c59d4p4b409686ce785404@mail.gmail.com>


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.


  reply	other threads:[~2009-06-03 11:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01 12:24 maybedoo
2009-06-01 19:37 ` Michael Snyder
2009-06-02 17:15   ` maybedoo
2009-06-02 19:23     ` Paul Pluzhnikov
2009-06-03 11:31       ` maybedoo [this message]
2009-06-03 22:07         ` Paul Pluzhnikov
2009-06-04 13:42           ` maybedoo
2009-06-04 14:12             ` maybedoo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23849811.post@talk.nabble.com \
    --to=maybedoo@gmx.de \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox