mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* KGDB problem
@ 2004-04-13  4:08 kernel
  2004-04-13  4:39 ` Amit S. Kale
  0 siblings, 1 reply; 3+ messages in thread
From: kernel @ 2004-04-13  4:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: kgdb-bugreport, amitkale

***********************************************
This Mail is Certified to be Virus Free.

CIC Network Security Group, IIT Kharagpur
***********************************************

I have a problem using kgdb.

My test kernel is 2.4.24 and I am using the kgdb patch
linux-2.4.23-kgdb-1.9.patch downloaded from kgdb.sourceforge.net.

The problem is that whenever I break at a function [say netif_rx() in a
net driver interrupt routine] and step into it, the "bt" (backtrace)
command never shows the entire stack trace - it only shows the current
function. Moreover, the "up" command does not work. Could anybody tell
me what could be the problem?

Regards.



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

* Re: KGDB problem
  2004-04-13  4:08 KGDB problem kernel
@ 2004-04-13  4:39 ` Amit S. Kale
  2004-04-13  5:57   ` kernel
  0 siblings, 1 reply; 3+ messages in thread
From: Amit S. Kale @ 2004-04-13  4:39 UTC (permalink / raw)
  To: kernel, kernel, linux-kernel; +Cc: kgdb-bugreport

Can you send the gdb output?

-Amit

On Tuesday 13 Apr 2004 9:38 am, kernel@cc.iitkgp.ernet.in wrote:
> ***********************************************
> This Mail is Certified to be Virus Free.
>
> CIC Network Security Group, IIT Kharagpur
> ***********************************************
>
> I have a problem using kgdb.
>
> My test kernel is 2.4.24 and I am using the kgdb patch
> linux-2.4.23-kgdb-1.9.patch downloaded from kgdb.sourceforge.net.
>
> The problem is that whenever I break at a function [say netif_rx() in a
> net driver interrupt routine] and step into it, the "bt" (backtrace)
> command never shows the entire stack trace - it only shows the current
> function. Moreover, the "up" command does not work. Could anybody tell
> me what could be the problem?
>
> Regards.

-- 
Amit Kale
EmSysSoft (http://www.emsyssoft.com)
KGDB: Linux Kernel Source Level Debugger (http://kgdb.sourceforge.net)


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

* Re: KGDB problem
  2004-04-13  4:39 ` Amit S. Kale
@ 2004-04-13  5:57   ` kernel
  0 siblings, 0 replies; 3+ messages in thread
From: kernel @ 2004-04-13  5:57 UTC (permalink / raw)
  To: Amit S. Kale; +Cc: linux-kernel, kgdb-bugreport

***********************************************
This Mail is Certified to be Virus Free.

CIC Network Security Group, IIT Kharagpur
***********************************************

Hi,

Here's a sample gdb output:

(gdb) symbol-file vmlinux
Reading symbols from vmlinux...done.
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
breakpoint () at kgdbstub.c:1005
1005                    atomic_set(&kgdb_setting_breakpoint, 0);
(gdb) br boomerang_rx
Breakpoint 1 at 0xc01c5709: file 3c59x.c, line 2397.
(gdb) br netif_rx
Breakpoint 2 at 0xc0285bc3: file current.h, line 9.
(gdb) c
Continuing.
[New Thread 32768]
 
Breakpoint 1, boomerang_rx (dev=0xc7e4bc00) at 3c59x.c:2397
2397            struct vortex_private *vp = (struct vortex_private
*)dev->priv;
(gdb) c
Continuing.
 
Breakpoint 2, netif_rx (skb=0xc796d04e) at current.h:9
9               __asm__("andl %%esp,%0; ":"=r" (current) : "0"
(~8191UL));
(gdb) s
1276    {
(gdb) s
9               __asm__("andl %%esp,%0; ":"=r" (current) : "0"
(~8191UL));
(gdb) s
7       {
(gdb) s
1281            if (skb->stamp.tv_sec == 0)
(gdb) s
1282                    do_gettimeofday(&skb->stamp);
(gdb) bt
#0  netif_rx (skb=0xc78c05e0) at dev.c:1282
(gdb)

Regards.



On Tue, 2004-04-13 at 10:09, Amit S. Kale wrote:
> Can you send the gdb output?
> 
> -Amit
> 
> On Tuesday 13 Apr 2004 9:38 am, kernel@cc.iitkgp.ernet.in wrote:
> > ***********************************************
> > This Mail is Certified to be Virus Free.
> >
> > CIC Network Security Group, IIT Kharagpur
> > ***********************************************
> >
> > I have a problem using kgdb.
> >
> > My test kernel is 2.4.24 and I am using the kgdb patch
> > linux-2.4.23-kgdb-1.9.patch downloaded from kgdb.sourceforge.net.
> >
> > The problem is that whenever I break at a function [say netif_rx() in a
> > net driver interrupt routine] and step into it, the "bt" (backtrace)
> > command never shows the entire stack trace - it only shows the current
> > function. Moreover, the "up" command does not work. Could anybody tell
> > me what could be the problem?
> >
> > Regards.



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

end of thread, other threads:[~2004-04-13  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-13  4:08 KGDB problem kernel
2004-04-13  4:39 ` Amit S. Kale
2004-04-13  5:57   ` kernel

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

all inboxes | Powered by JetHome®