From owner-freebsd-hackers Tue May 18 0: 5:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 9E60314F5B for ; Tue, 18 May 1999 00:05:12 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id QAA00260; Tue, 18 May 1999 16:35:01 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id QAA02200; Tue, 18 May 1999 16:34:56 +0930 (CST) Date: Tue, 18 May 1999 16:34:55 +0930 From: Greg Lehey To: Sheldon Hearn Cc: Doug Rabson , Mike Heffner , FreeBSD Hackers Subject: Re: Debugging Message-ID: <19990518163455.U89091@freebie.lemis.com> References: <4475.927010849@axl.noc.iafrica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <4475.927010849@axl.noc.iafrica.com>; from Sheldon Hearn on Tue, May 18, 1999 at 09:00:49AM +0200 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 18 May 1999 at 9:00:49 +0200, Sheldon Hearn wrote: > > > On Mon, 17 May 1999 09:58:10 +0100, Doug Rabson wrote: > >> I don't think LINT in current mentions the new debug flag. > > Are you talking about this: > > # The `makeoptions' parameter allows variables to be passed to the > # generated Makefile in the build area. DEBUG happens to be magic. > [...] > #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols No. Doug's right, it appears. The flags are for the serial ports (sio0, etc). LINT says: # `flags' for serial drivers that support consoles (only for sio now): # 0x10 enable console support for this unit. The other console flags # are ignored unless this is set. Enabling console support does # not make the unit the preferred console - boot with -h or set # the 0x20 flag for that. Currently, at most one unit can have # console support; the first one (in config file order) with # this flag set is preferred. Setting this flag for sio0 gives # the old behaviour. # 0x20 force this unit to be the console (unless there is another # higher priority console). This replaces the COMCONSOLE option. # 0x40 reserve this unit for low level console operations. Do not # access the device in any normal way. In fact, there's also a 0x80, which you need to set (along with 0x10, it appears) to run remote debugging. I'm guessing a bit at this, since I haven't had time to look at the code, but 0x90 works for me. Doug? Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message