Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 07:00:13 -0700
From:      Mark Peek <mp@FreeBSD.org>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: Please install and test the GDB 5.2 port
Message-ID:  <p05111a1eb940c7101469@[10.1.1.73]>
In-Reply-To: <20020627075021.C14251@uriah.heep.sax.de>
References:  <20020607120246.A45465@dragon.nuxi.com> <200206261901.g5QJ18r70701@uriah.heep.sax.de> <p05111a13b93fec25160e@[10.1.1.73]> <20020627075021.C14251@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111a1eb940c7101469>