[Kgdb-bugreport] Re: KGDB problem
Status: Beta
Brought to you by:
jwessel
From: <ke...@cc...> - 2004-04-13 06:00:24
|
*********************************************** 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, ke...@cc... 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. |