Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Shrinand Javadekar <shrinand@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Kernel symbol table
Date: Thu, 09 Apr 2009 19:00:00 -0000	[thread overview]
Message-ID: <49DE4219.9020606@vmware.com> (raw)
In-Reply-To: <fe51cfa60904081737o5d8a75f3m2e61fff268ba779c@mail.gmail.com>

Shrinand Javadekar wrote:
> Hi All,
> 
> I have gdb attached to a running kernel. Even if the kernel was not
> built with symbols, there should be some symbols exported by the
> kernel right? The ones exported by using EXPORT_SYMBOL; e.g. sys_open,
> sys_close, etc.
> 
> I believe these symbols are kept in the kernel symbol table. The
> question I have is, how do I access this symbol table?
> 
> Also, does the kernel do anything special about where to keep (at what
> address) this symbol table?
> 
> Thanks in advance.
> -Shri

Shri,

If you build the kernel, the symbol file will be called "vmlinux"
in the top level of your build tree.  This is an elf file that gdb
can read.

You do not want the compressed file called "vmlinuz" (note 'z').
That file is not elf.

Cheers,
Michael


  reply	other threads:[~2009-04-09 18:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 16:34 Shrinand Javadekar
2009-04-09 19:00 ` Michael Snyder [this message]
2009-04-09 20:28   ` Shrinand Javadekar
2009-04-09 20:36     ` Michael Snyder
2009-04-09 20:50       ` Shrinand Javadekar
2009-04-09 20:52         ` Michael Snyder
2009-04-10  1:21         ` Baurzhan Ismagulov
2009-04-13  3:11         ` Jan Kratochvil

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=49DE4219.9020606@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb@sourceware.org \
    --cc=shrinand@gmail.com \
    /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