lkml.org 
[lkml]   [2004]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: KGDB problem
From
Date
***********************************************
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.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.246 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site