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'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".

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_symfile.c   patch-gdb_target.c
patch-gdb_config_i386_nm-fbsd.h patch-gdb_target.h

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 

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.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to