From owner-freebsd-current Thu Jun 27 7: 2: 8 2002 Delivered-To: freebsd-current@freebsd.org Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by hub.freebsd.org (Postfix) with SMTP id BEE3837B406 for ; Thu, 27 Jun 2002 07:02:03 -0700 (PDT) Received: (qmail 5032 invoked from network); 27 Jun 2002 14:02:02 -0000 Received: from 12-236-91-101.client.attbi.com (HELO ?10.1.1.73?) (12.236.91.101) by relay1.pair.com with SMTP; 27 Jun 2002 14:02:02 -0000 X-pair-Authenticated: 12.236.91.101 Mime-Version: 1.0 X-Sender: (Unverified) Message-Id: In-Reply-To: <20020627075021.C14251@uriah.heep.sax.de> References: <20020607120246.A45465@dragon.nuxi.com> <200206261901.g5QJ18r70701@uriah.heep.sax.de> <20020627075021.C14251@uriah.heep.sax.de> Date: Thu, 27 Jun 2002 07:00:13 -0700 To: Joerg Wunsch From: Mark Peek Subject: Re: Please install and test the GDB 5.2 port Cc: freebsd-current@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 7:50 AM +0200 6/27/02, Joerg Wunsch wrote: >As Mark Peek wrote: > >> >Hmm, so how to debug a kernel coredump? >> >> >> You need to update your gdb52 port. > >I can't find a newer one in CVS: > >j@uriah 85% pkg_info -I gdb-\* >gdb-5.2_2 GNU GDB 5.2 developmental snapshot Very odd...here's what I get on my -current system: # pkg_info -I gdb-\* gdb-5.2_2 GNU GDB 5.2 developmental snapshot current# gdb -k GNU gdb 4.18 Copyright 1998 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-unknown-freebsd". (kgdb) ^^^^ Can you verify that there are patches in the devel/gdb52/files? # ls /usr/ports/devel/gdb52/files CVS patch-gdb_kvm-fbsd.c patch-gdb_config_alpha_fbsd.mh patch-gdb_symfile.c patch-gdb_config_i386_fbsd.mh patch-gdb_target.c patch-gdb_config_i386_nm-fbsd.h patch-gdb_target.h patch-gdb_config_i386_tm-fbsd.h patch-gdb_version.in patch-gdb_freebsd-uthread.c Did the make create this file? # ls -l /usr/ports/devel/gdb52/work/gdb-5.2/gdb/kvm-fbsd.c -rw-r--r-- 1 root wheel 26480 Jun 27 06:48 /usr/ports/devel/gdb52/work/gdb-5.2/gdb/kvm-fbsd.c Does running the gdb in /usr/ports/devel/gdb52/work/gdb-5.2/gdb/gdb produce the same results? What version of -current are you running? I have an explicit check for the -current version in the kernel debugging code. Check "sysctl -a kern.osreldate" and see if your system is >= 500032. Also, you could try "make deinstall", "make -DNOCLEANDEPENDS clean", and "make install" (I think this is the right set to remove the port, clean the local work directory, rebuild and reinstall). Another check to make sure the patch worked is to verify that /usr/ports/devel/gdb52/work/gdb-5.2/gdb/kvm-fbsd.c now exists. Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message