From owner-freebsd-current Sat Dec 27 20:46:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA16128 for current-outgoing; Sat, 27 Dec 1997 20:46:47 -0800 (PST) (envelope-from owner-freebsd-current) Received: from pluto.plutotech.com (mail.plutotech.com [206.168.67.137]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA16114 for ; Sat, 27 Dec 1997 20:46:41 -0800 (PST) (envelope-from ken@plutotech.com) Received: (from ken@localhost) by pluto.plutotech.com (8.8.7/8.8.5) id VAA02136; Sat, 27 Dec 1997 21:45:26 -0700 (MST) From: Kenneth Merry Message-Id: <199712280445.VAA02136@pluto.plutotech.com> Subject: Re: Remote gdb (was: no boot: config -g and options DDB) In-Reply-To: from Julian Elischer at "Dec 27, 97 07:31:23 pm" To: julian@whistle.com (Julian Elischer) Date: Sat, 27 Dec 1997 21:45:26 -0700 (MST) Cc: grog@lemis.com, bde@zeta.org.au, skynyrd@opus.cts.cwu.edu, freebsd-current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Julian Elischer wrote... > My remote gdb setup.. > on the master machine: > I use the following .gdbinit file in the compile directory. > > --- > file kernel > set remotebaud 9600 > target remote /dev/cuaa1 > --- > > > > on the victim machine: > boot with a kernel with flags 0x10 compiled on sio0, and options DDB FWIW, I generally run with flags 0x50, and it can be any serial port. The thing to watch out for is that when you have flags 0x50 on your serial port, it isn't good for anything other than remote debugging. (i.e. user code thinks that the serial port isn't there, not configured, etc.) Ken -- Kenneth Merry ken@plutotech.com