From owner-freebsd-hackers Sun Apr 23 15:18:42 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA11302 for hackers-outgoing; Sun, 23 Apr 1995 15:18:42 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id PAA11293 for ; Sun, 23 Apr 1995 15:18:33 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA06501; Mon, 24 Apr 1995 00:18:24 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA10751 for hackers@freebsd.org; Mon, 24 Apr 1995 00:18:23 +0200 Received: (from j@localhost) by jette.heep.sax.de (8.6.8/8.6.9) id AAA02644 for hackers@freebsd.org; Mon, 24 Apr 1995 00:05:20 +0200 From: J Wunsch Message-Id: <199504232205.AAA02644@jette.heep.sax.de> Subject: Re: How do I set a kernel variable? To: hackers@FreeBSD.org Date: Mon, 24 Apr 1995 00:05:17 +0200 (MET DST) Reply-To: hackers@FreeBSD.org In-Reply-To: from "gj%pcs.dec.com@inet-gw-1.pa.dec.com" at Apr 23, 95 06:40:06 pm Reply-To: joerg_wunsch@uriah.heep.sax.de X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 918 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > It turns out that it _is_ possible to set a variable, but there's a trick > to it. [Evil trickery deleted] > > If you try to just do the following: > > gdb -k > set write > exec-file /kernel > > you'll get an error, because gdb tries to open /kernel for writing, which > (for some reason) fails miserably. /kernel installed by ``make install''? I think it will have the immutable flag set then. > > Maybe we should have a "-w" flag to specify opening the core-file for > writing ? Any opinions ? After reading your description, just this question came to mind. If nobody objects: go for it. > > Could you add this tip to the kernel-debug.FAQ, J"org ? Once my CVS is back, yes. Otherwise: you've got commit privs, too. Your english is (hopefully :) better than mine -- so you can also do it yourself. I don't mind doing it however. Will keep you message in my growing work queue, as a reminder. Jörg