From owner-freebsd-current@FreeBSD.ORG Sun May 18 15:15:14 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 940FC37B401; Sun, 18 May 2003 15:15:14 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9828C43FBD; Sun, 18 May 2003 15:15:13 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h4IMEvm2005788; Sun, 18 May 2003 15:15:02 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h4IMEv14005787; Sun, 18 May 2003 15:14:57 -0700 (PDT) Date: Sun, 18 May 2003 15:14:57 -0700 From: "David O'Brien" To: Ian Dowse Message-ID: <20030518221457.GA4531@dragon.nuxi.com> Mail-Followup-To: David O'Brien , Ian Dowse , mp@freebsd.org, current@freebsd.org References: <200305182227.aa40061@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305182227.aa40061@salmon.maths.tcd.ie> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: current@freebsd.org Subject: Re: kgdb missing stack frames X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2003 22:15:14 -0000 On Sun, May 18, 2003 at 10:27:22PM +0100, Ian Dowse wrote: > Index: contrib/gdb/gdb/config/i386/tm-fbsd.h > =================================================================== > RCS file: /dump/FreeBSD-CVS/src/contrib/gdb/gdb/config/i386/tm-fbsd.h,v > retrieving revision 1.4 > diff -u -r1.4 tm-fbsd.h > --- contrib/gdb/gdb/config/i386/tm-fbsd.h 12 Oct 2002 17:56:56 -0000 1.4 > +++ contrib/gdb/gdb/config/i386/tm-fbsd.h 18 May 2003 21:12:05 -0000 This would give vendor differences I was trying to avoid. I think this is another way to fix the problem. I haven't tested it, but if you have a chance before I do, want to give it a spin? Index: Makefile =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/binutils/gdb/Makefile,v retrieving revision 1.65 diff -u -r1.65 Makefile --- Makefile 21 Mar 2003 00:30:53 -0000 1.65 +++ Makefile 18 May 2003 22:13:21 -0000 @@ -129,6 +129,7 @@ nm.h: echo '#include "${GDB_CPU}/nm-fbsd.h"' >${.TARGET} echo '#include "fbsd-kgdb.h"' >>${.TARGET} + echo '#include "fbsd-kgdb-${TARGET_ARCH}.h"' >>${.TARGET} .for H in tm-fbsd xm-${GDB_CPU} ${H:C/-.*$//}.h: Index: fbsd-kgdb-i386.h =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/binutils/gdb/fbsd-kgdb-i386.h,v retrieving revision 1.3 diff -u -r1.3 fbsd-kgdb-i386.h --- fbsd-kgdb-i386.h 18 Sep 2002 16:20:49 -0000 1.3 +++ fbsd-kgdb-i386.h 18 May 2003 22:10:05 -0000 @@ -20,10 +20,8 @@ #undef FRAME_SAVED_PC #define FRAME_SAVED_PC(FRAME) \ (kernel_debugging \ - ? fbsd_kern_frame_saved_pc (FRAME) : \ - (FRAME)->signal_handler_caller \ - ? sigtramp_saved_pc (FRAME) \ - : read_memory_integer ((FRAME)->frame + 4, 4)) + ? fbsd_kern_frame_saved_pc (FRAME) \ + : i386bsd_frame_saved_pc (FRAME)) /* Offset to saved PC in sigcontext, from . */ #define SIGCONTEXT_PC_OFFSET 20