All of lore.kernel.org
 help / color / mirror / Atom feed
* kgdb with linux-mips problem
@ 2001-09-19  2:42 ` Shaolin Zhang
  0 siblings, 0 replies; 9+ messages in thread
From: Shaolin Zhang @ 2001-09-19  2:42 UTC (permalink / raw)
  To: linux-mips; +Cc: Ernest Jih, "recc stone"

Hello ,

  Now we have some problems in using kgdb to debug the Linux-mips kernel on IDT 79s334A board.

1.I enabled the kernel startup option kgdb=on to debug the kernel setup.
  At first, the gdb on host pc connected to the target boards correctly.
  Then I use a few "n"(Next) command to debug the kernel, but the kernel
seems
 to run out of my hands, as if I had executed some "c" command.
  I use "set debug remote 1"  command to see the packets gdb send&receive:
  and find :
   the gdb send a "c" packet to the stub at the end of packet sequence.

  I guess that the gdb on the host pc send some wrong command , or it can't
get right info
  to debug?


2.I want to debug some init_module function in module , like this :

int init_module(void)
{
    breakpoint(); // use the breakpoint function in kernel to get a break.
    my_functions();
}

When I insmod this module, it through exception 9 (breakpoint), then I run
"bt"
command in gdb, but this time gdb report "can't find the start of function
0x....".
Is this a gdb problem or gdb stub problem? BTW, when I first bootup the
kernel
and connect the gdb&stub ,the sample problem happened.

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

end of thread, other threads:[~2001-09-19 13:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-19  2:42 kgdb with linux-mips problem Shaolin Zhang
2001-09-19  2:42 ` Shaolin Zhang
2001-09-19  2:46 ` Daniel Jacobowitz
2001-09-19  3:18   ` Shaolin Zhang
2001-09-19  3:18     ` Shaolin Zhang
2001-09-19 13:39     ` Daniel Jacobowitz
2001-09-19 13:39       ` Daniel Jacobowitz
2001-09-19  7:38 ` Kevin D. Kissell
2001-09-19  7:38   ` Kevin D. Kissell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.