From owner-freebsd-hackers Wed Sep 5 12:23:54 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 179D637B405 for ; Wed, 5 Sep 2001 12:23:31 -0700 (PDT) Received: from onyx (onyx.cs.binghamton.edu [128.226.140.171]) by bingnet2.cc.binghamton.edu (8.11.4/8.11.4) with ESMTP id f85JLHg05509; Wed, 5 Sep 2001 15:21:17 -0400 (EDT) Date: Wed, 5 Sep 2001 15:20:01 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@onyx To: Julian Elischer Cc: freebsd-hackers@freebsd.org Subject: Re: kernel ddb help 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 Wed, 5 Sep 2001, Julian Elischer wrote: > you can gdb -k mykernel /dev/mem > and do > list bqrelse+0x25 > (I think) > alternatively, > in ddb you can do: > > > x/iiiiiiiiiiiiiiiiiii bqrelse > > and work out what is wrong by reading the machine instructions > > > WHen I have one machine I usually debug by running the new kernel > within a VMWARE virtual machine. Using the nmdm driver > you can run gdb in the main machine to debug it, all within one machine. > (unfortunatly it doesn't help for debugging drivers because the virtual > machine doesn't have acces to the real hardware). I am interested in setting up this environment. Is there any help information out there? If not, can you give me a few guideline? I will try myself. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message