Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* symbol address problem (debugging linux kernel with gdb)
@ 2007-09-06 10:01 treul
  2007-09-07  1:17 ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: treul @ 2007-09-06 10:01 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: symbol address problem (debugging linux kernel with gdb)
  2007-09-06 10:01 symbol address problem (debugging linux kernel with gdb) treul
@ 2007-09-07  1:17 ` Jan Kratochvil
  2007-09-07  5:43   ` treul
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kratochvil @ 2007-09-07  1:17 UTC (permalink / raw)
  To: treul; +Cc: gdb

Hi,

not sure if it is the case but you may be looking for:
	http://marc.info/?l=linux-kernel&m=118578550722404

the patch is now pending upstream to be rewritten according to:
	http://sourceware.org/ml/gdb/2006-08/msg00144.html


Regards,
Jan


On Thu, 06 Sep 2007 10:39:38 +0200, treul wrote:
> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: symbol address problem (debugging linux kernel with gdb)
  2007-09-07  1:17 ` Jan Kratochvil
@ 2007-09-07  5:43   ` treul
  0 siblings, 0 replies; 3+ messages in thread
From: treul @ 2007-09-07  5:43 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb

Hi, Jan


Thank you very much! You pointed me in the right direction.

I've solved this problem.


Regards,

-treul



2007/9/7, Jan Kratochvil <jan.kratochvil@redhat.com>:
> Hi,
>
> not sure if it is the case but you may be looking for:
>         http://marc.info/?l=linux-kernel&m=118578550722404
>
> the patch is now pending upstream to be rewritten according to:
>         http://sourceware.org/ml/gdb/2006-08/msg00144.html
>
>
> Regards,
> Jan
>
>
> On Thu, 06 Sep 2007 10:39:38 +0200, treul wrote:
> > 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
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-07  3:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-06 10:01 symbol address problem (debugging linux kernel with gdb) treul
2007-09-07  1:17 ` Jan Kratochvil
2007-09-07  5:43   ` treul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox