Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: vb <vb@vsbe.com>
To: gdb@sourceware.org
Subject: add-symbol-file question
Date: Tue, 20 Nov 2007 00:50:00 -0000	[thread overview]
Message-ID: <f608b67d0711191650g5ea249e8n91cac4533f4ee05a@mail.gmail.com> (raw)

Greetings,

I am trying to debug very early stages of bringing up a ppc82xx
kernel. (it's not relevant. but just in case: I'm using a bdi2000)

For some reason gdb fails to read the symbol table such that the text
segment is placed at 0:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
(gdb) show version
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu
--target=powerpc-8540-linux-gnu".
(gdb)  sym
Discard symbol table? (y or n) y
No symbol file now.
(gdb) add-symbol-file ../build/linux-2.6-lb4-powerpc/vmlinux  0x40000000
add symbol table from file "../build/linux-2.6-lb4-powerpc/vmlinux" at
        .text_addr = 0x40000000
(y or n) y
Reading symbols from
/local/vb/projects/vanilla-wt/build/linux-2.6-lb4-powerpc/vmlinux...done.
(gdb) p __start
$7 = {<text variable, no debug info>} 0x4000000c <__start>
(gdb) sym
Discard symbol table? (y or n) y
No symbol file now.
(gdb) add-symbol-file ../build/linux-2.6-lb4-powerpc/vmlinux  0x00000000
add symbol table from file "../build/linux-2.6-lb4-powerpc/vmlinux" at
        .text_addr = 0x0
(y or n) y
Reading symbols from
/local/vb/projects/vanilla-wt/build/linux-2.6-lb4-powerpc/vmlinux...done.
(gdb) p __start
$8 = {<text variable, no debug info>} 0x8000000c <__start>
(gdb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


I tried loading it at different offsets, anything else but 0 works
just fine, anyone knows what's wrong?!

TIA,
/vb


             reply	other threads:[~2007-11-20  0:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-20  0:50 vb [this message]
2007-11-20 12:19 ` Michael Snyder
  -- strict thread matches above, loose matches on Subject: below --
2007-09-05 23:30 Mentat K.
2007-09-06  3:19 ` Daniel Jacobowitz
2007-09-06  8:39   ` Mentat K.

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=f608b67d0711191650g5ea249e8n91cac4533f4ee05a@mail.gmail.com \
    --to=vb@vsbe.com \
    --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