From owner-freebsd-hackers Tue Nov 6 17: 0:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 79F7837B405 for ; Tue, 6 Nov 2001 17:00:17 -0800 (PST) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA68242; Tue, 6 Nov 2001 16:41:02 -0800 (PST) Date: Tue, 6 Nov 2001 16:41:00 -0800 (PST) From: Julian Elischer To: Zhihui Zhang Cc: freebsd-hackers@freebsd.org Subject: Re: kernel remote debugging 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 hardware watch points work in ddb so: whe you know the address, switch to ddb (gdb) det and then use: hwatch 0xabcd1234 cont *watchpoint hits* remove watch point > gdb Next fault will switch to gdb > s [switches back to GDB] julian On Tue, 6 Nov 2001, Zhihui Zhang wrote: > > I am remote debugging a KLD and I want to trace down the point when the > data in a certain memory address is modified. How to do this? Does the > hardware watchpoint work over remote debugging? If the address is > 0xabcd1234, how to use the watch command? > > (gdb) watch 0xabcd1234 > > or > > (gdb) watch * 0xabcd1234 > > Thanks! > > -Zhihui > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message