From owner-freebsd-questions Wed Apr 2 17:47:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA15651 for questions-outgoing; Wed, 2 Apr 1997 17:47:23 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA15643; Wed, 2 Apr 1997 17:47:17 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id LAA05672; Thu, 3 Apr 1997 11:16:53 +0930 (CST) From: Michael Smith Message-Id: <199704030146.LAA05672@genesis.atrad.adelaide.edu.au> Subject: Re: writing to kernel global variables with gdb In-Reply-To: <199704022236.WAA01626@peedub.gj.org> from Gary Jennejohn at "Apr 2, 97 10:36:08 pm" To: Gary.Jennejohn@munich.netsurf.de Date: Thu, 3 Apr 1997 11:16:53 +0930 (CST) Cc: pmchen@eecs.umich.edu, freebsd-current@freebsd.org, freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Gary Jennejohn stands accused of saying: > "Peter M. Chen" writes: > >Hi Gary, > > Joerg referred me to you as the maintainer for kgdb. I am using > >"gdb -w -k kernel.debug /dev/mem" to try to change a global variable on a > >running kernel (which Joerg thought should work), but I get > >"kvm_write:write failed". This is true even when I run as root. > > > > Any ideas? > > > > it turns out that there's already a "w" option ("use windows") > defined in main.c. There's no code which makes use of it. This code is part of gdbtk, which is also why gdb understands -nw (like emacs). > Gary Jennejohn -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[