From owner-freebsd-hackers Tue Apr 29 10:58:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA29238 for hackers-outgoing; Tue, 29 Apr 1997 10:58:09 -0700 (PDT) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA29233 for ; Tue, 29 Apr 1997 10:58:06 -0700 (PDT) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id KAA23627; Tue, 29 Apr 1997 10:57:16 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd023621; Tue Apr 29 17:57:09 1997 Message-ID: <33663658.41C67EA6@whistle.com> Date: Tue, 29 Apr 1997 10:56:40 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Simon Shapiro CC: freebsd-hackers@freebsd.org Subject: Re: A Desparate Plea for Help... References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Simon Shapiro wrote: > > Hi Julian Elischer; On 28-Apr-97 you wrote: > > ... > > > The best thing for you to do with this > > is to compile the gernet > ^^^^^^ Kernel. Right? yep finger blowout > > using -g > > do this by using > > config -g > > do: (on the compile machine) > > make > > cp kernel kernel.debug > > strip -d kernel > > Are the two above in / or in /usr/src/sys/compile/WHATEVER? this all happens in /usr/src/sys/compile/WHATEVER > > > > also: > > cat >.gdbinit < > set remotebaud 9600 > > file kernel.debug > > target remote /dev/cuaa1 > > DONE > > In / or in /usr/src/sys/compile/WHATEVER? /usr/src/sys/compile/WHATEVER > > > > > > compile the options DDB and set the default > > debugger to be gdb by booting with -g > > > > then if you get a crash, > > make sure that /dev/cuaa1 (com2) on your source machine is > > connected to com1 on the victim machine > > and type > > cd /sys/compile/ > > gdb > > > > this (due to the .gdbinit) will fire up gdb and allow you to walk up and > > down the > > stack trace of the crashed kernel. > > > > even if the screen is stuck in X11. > > > > there are some problems I've seen. > > > > 1/ the newest gdb versions are not as good at doing this as some of the > > older ones. > > What is an ``older but better'' one? Version #, etc... > > > and sometimes get confused. > > 2/ you must remember to make sure the system has sert gdb to be the > > kernel debugger. > > (there may be a compile time option for this.. I forget) > > Could not find that, other than the -g at boot time. > > > 3/ some uarts don't like this if com1 is already being used for > > something.. > > (move your mouse to com2) > > ay suggestion on what are the best settings for com4? I need a mouse, a > serial > port for modem and a serial port for ISDN. Can I configure everything to > use > com4 instead of com1? Will make it simpler here. the kernel gdb slave will only run on the device selected for the serial console (it uses the same routines) > > Simon