Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: treul <lgijnpuhx@gmail.com>
To: gdb@sources.redhat.com
Subject: symbol address problem (debugging linux kernel with gdb)
Date: Thu, 06 Sep 2007 10:01:00 -0000	[thread overview]
Message-ID: <6a6ca2180709060139led36680r7132789d915f4a18@mail.gmail.com> (raw)

Hi, all


I'm using virtual machine to debug linux kernel.

By "nm vmlinux", I find the address of the function do_IRQ() is at
0xc0105835. But when I "b do_IRQ", gdb says "Breakpoint 2 at
0x80205835: file arch/i386/kernel/irq.c, line 55." The gap of all
other normal symbols is the same - 0x3ff00000.

In addition, see following:
------------------------------------------------------------------
(gdb) info symbol 0xc0105835
do_IRQ in section .text
(gdb) info address do_IRQ
Symbol "do_IRQ" is a function at address 0x80205835.
------------------------------------------------------------------

I don't know why... Please help me on this matter, thank you very much!!


-treul


             reply	other threads:[~2007-09-06  8:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 10:01 treul [this message]
2007-09-07  1:17 ` Jan Kratochvil
2007-09-07  5:43   ` treul

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=6a6ca2180709060139led36680r7132789d915f4a18@mail.gmail.com \
    --to=lgijnpuhx@gmail.com \
    --cc=gdb@sources.redhat.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