Subject: Re: port-i386/34852: KGDB stack trace is useless
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Andreas Gustafsson <gson@gson.org>
List: netbsd-bugs
Date: 10/26/2006 12:00:07
The following reply was made to PR port-i386/34852; it has been noted by GNATS.

From: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-i386/34852: KGDB stack trace is useless
Date: Thu, 26 Oct 2006 14:58:41 +0300

 Since gdb6 was recently imported into -current, I made a new attempt
 at remote kernel debugging using a fresh build (from October 24 sources)
 on both the gdb host and the target.  There has been some improvement,
 but the stack trace is still far from complete:
 
   # gdb
   GNU gdb 6.5
   Copyright (C) 2006 Free Software Foundation, Inc.
   GDB is free software, covered by the GNU General Public License, and you are
   welcome to change it and/or distribute copies of it under certain conditions.
   Type "show copying" to see the conditions.
   There is absolutely no warranty for GDB.  Type "show warranty" for details.
   This GDB was configured as "i386--netbsdelf".
   breakpoint () at ./machine/cpufunc.h:300
   300     ./machine/cpufunc.h: No such file or directory.
 	  in ./machine/cpufunc.h
   warning: no shared library support for this OS / ABI
   (gdb) where
   #0  breakpoint () at ./machine/cpufunc.h:300
   #1  0xc053af4a in kgdb_connect (verbose=1) at ../../../../arch/i386/i386/kgdb_machdep.c:252
   #2  0xc02d06fd in comintr (arg=0xc12a4600) at ../../../../dev/ic/com.c:2077
   #3  0xc01017f1 in Xintr_legacy4 ()
   #4  0xc12a4600 in ?? ()
   #5  0x0000000b in ?? ()
   #6  0x00000010 in ?? ()
   #7  0x00000030 in ?? ()
   #8  0xcb630010 in ?? ()
   #9  0xc0430010 in swap_bytes_fetch_to (self=0xc12b8940, dst=0xc0936120, 
       max_used=-1072687388) at ../../../../dev/auconv.c:317
   Previous frame inner to this frame (corrupt stack?)
   (gdb) 
 
 -- 
 Andreas Gustafsson, gson@gson.org