From owner-freebsd-current@FreeBSD.ORG Fri Apr 9 18:55:52 2004 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 3D29016A4CE; Fri, 9 Apr 2004 18:55:52 -0700 (PDT) Received: from newman.gte.com (newman.gte.com [132.197.8.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A16F43D1F; Fri, 9 Apr 2004 18:55:51 -0700 (PDT) (envelope-from ak03@gte.com) Received: from h132-197-179-27.gte.com (kanpc.gte.com [132.197.179.27]) by newman.gte.com (8.9.1/8.9.1) with ESMTP id VAA19509; Fri, 9 Apr 2004 21:55:49 -0400 (EDT) Received: from kanpc.gte.com (ak03@localhost [127.0.0.1]) i3A1tnP5038746; Fri, 9 Apr 2004 21:55:49 -0400 (EDT) (envelope-from ak03@kanpc.gte.com) Received: (from ak03@localhost) by kanpc.gte.com (8.12.11/8.12.11/Submit) id i3A1tnb1038745; Fri, 9 Apr 2004 21:55:49 -0400 (EDT) (envelope-from ak03) Date: Fri, 9 Apr 2004 21:55:49 -0400 From: Alexander Kabaev To: Lukas Ertl Message-ID: <20040410015549.GA38693@kanpc.gte.com> References: <20040409061800.GA2000@frontfree.net> <20040409184936.S8718@leelou.in.tern> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040409184936.S8718@leelou.in.tern> User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: How to produce effective backtraces from crashdump? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2004 01:55:52 -0000 On Fri, Apr 09, 2004 at 06:51:53PM +0200, Lukas Ertl wrote: > I'm seeing similar problems here. Could you please try the following: > > Open /usr/src/gnu/usr.bin/binutils/libbfd/i386/bfd.h and change line 59 > from: > > #define BFD_ARCH_SIZE 64 > > to: > > #define BFD_ARCH_SIZE 32 > > Then recompile world and kernel. > > cheers, > le > Recompiling in src/gnu/usr.bin/binutils is enough. No need for buildworld and kernel. I am using the patch attached which fixes this particular error in gdb itself. -- Alexander Kabaev Index: i386-tdep.c =================================================================== RCS file: /home/ncvs/src/contrib/gdb/gdb/i386-tdep.c,v retrieving revision 1.3 diff -u -r1.3 i386-tdep.c --- i386-tdep.c 28 Jun 2002 00:14:01 -0000 1.3 +++ i386-tdep.c 1 Apr 2004 06:01:52 -0000 @@ -685,8 +685,8 @@ /* Return PC of first real instruction. */ -int -i386_skip_prologue (int pc) +CORE_ADDR +i386_skip_prologue (CORE_ADDR pc) { unsigned char op; int i; Index: config/i386/tm-i386.h =================================================================== RCS file: /home/ncvs/src/contrib/gdb/gdb/config/i386/tm-i386.h,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 tm-i386.h --- config/i386/tm-i386.h 27 Jun 2002 23:04:07 -0000 1.1.1.3 +++ config/i386/tm-i386.h 1 Apr 2004 05:58:35 -0000 @@ -61,7 +61,7 @@ #define SKIP_PROLOGUE(frompc) (i386_skip_prologue (frompc)) -extern int i386_skip_prologue (int); +extern CORE_ADDR i386_skip_prologue (CORE_ADDR); /* Immediately after a function call, return the saved pc. */