This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Breakpoint on Memory Range?
- To: "Riaz" <riazr at cat dot co dot za>
- Subject: Re: Breakpoint on Memory Range?
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Tue, 23 May 2000 06:14:39 -0400 (EDT)
- CC: <gdb at sourceware dot cygnus dot com>
- References: <000001bfc4d2$7424ac80$1923a8c0@cat.co.za>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Does GDB 5.0 (i386 NetBSD) offer the ability to stop execution when there
> has been a "write" to a memory range?
GDB supports watchpoints on several x86-based platforms. You say
"watch foo", resume the program, and the debugger will kick in when
the address of the variable `foo' is written to.
On 32-bit x86 targets, GDB typically can watch no more than 16 bytes
of memory, due to x86 debug registers limitations.
I have no idea if the NetBSD version of GDB supports watchpoint, but
you could try. The GDB manual has more info about watchpoints.