From owner-freebsd-hackers Sun Jun 30 19:14: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB23C37B400 for ; Sun, 30 Jun 2002 19:13:59 -0700 (PDT) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.223.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A4D343E35 for ; Sun, 30 Jun 2002 19:13:55 -0700 (PDT) (envelope-from freebsd@fasttrackmonkey.com) Received: (qmail 45900 invoked by uid 85); 1 Jul 2002 02:13:50 -0000 Received: from freebsd@fasttrackmonkey.com by angryfist.fasttrackmonkey.com by uid 1001 with qmail-scanner-1.10 (sophie: 2.9/3.56. . Clear:0. Processed in 0.066754 secs); 01 Jul 2002 02:13:50 -0000 X-Qmail-Scanner-Mail-From: freebsd@fasttrackmonkey.com via angryfist.fasttrackmonkey.com X-Qmail-Scanner: 1.10 (Clear:0. Processed in 0.066754 secs) Received: from unknown (HELO white.nat.fasttrackmonkey.com) (64.47.30.2) by 0 with DES-CBC3-SHA encrypted SMTP; 1 Jul 2002 02:13:50 -0000 Date: Sun, 30 Jun 2002 22:13:52 -0400 (EDT) From: Charles Sprickman To: Julian Elischer Cc: "freebsd-hackers@freebsd.org" Subject: Re: getting a coredump before boot device found In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 30 Jun 2002, Julian Elischer wrote: Thanks Julian, I promise to tinker with this in the future... I dug through all my junk here and I have no null modem cable/adapter. I'm going to just go back there with my laptop and this page: http://www.onlamp.com/pub/a/bsd/2002/04/04/Big_Scary_Daemons.html And I'll see what I can get. Is Soren the main ata guy? Thanks again, I will definetly try out the remote gdb method in the future. Charles > have the source and compile directory on the 2nd machine so gdb can access > it. compile with debug symbols (config -g). Have the following .gdbinit in > the compile/MYKENEL directory: > > file kernel.debug > set remotebaud 9600 > target remote /dev/cuaa1 > > then connect a null modem cable getween com2 of both machines. > on the booting machine you need 'flags 0xc0 on sio1' in the config > or from the kernel configurator when you boot. > to tell the gdb stub that is where to go. > > when it crashes into the ddb > type 'tr' > to get a good backtrace, > then type 'gdb' to set gdb mode > then 's' to switch to it. > > on the compile machine, in the compile/MYKERN directory, > type 'gdb' > (you must have compiled with debug support.... "config -g") > > to go back to ddb > > 'det' > > to reboot from ddb: > > call boot 0 > (you may need to do it more than once). > > > > > Charles > > > > > > > > On Sun, 30 Jun 2002, Charles Sprickman wrote: > > > > > > > Hi, > > > > > > > > I'm wondering if there's any way to get a coredump on a machine that's > > > > panicing while probing ata-attached drives. I'd like to help someone fix > > > > whatever this remaining ata bug is in 4.6 and -stable, but I'm stumped on > > > > how to do this. I can break into the debugger, but my only option there > > > > to write a core is to "panic" again, but since there's no dump device > > > > configured yet... chicken and egg... > > > > > > > > Is this at all possible? I couldn't find anything in the DDB manpage, nor > > > > in a quick google search. > > > > > > > > Thanks, > > > > > > > > CS > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message