GDB library to insert and delete watchpoints

Jan Kratochvil jan.kratochvil@redhat.com
Tue Dec 1 21:14:00 GMT 2009


On Tue, 01 Dec 2009 00:18:15 +0100, Aravinda wrote:
> But I couldnt find more info on this.  Im looking for a ready to use library

Not a library but if you look just for the code you can based it on:
	http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/watchpoint.c?cvsroot=systemtap

> to be used with a kernel module
> that allows for modifying the debug registers.

Debug registers needed for hardware watchpoints are accessible from userland
via standard ptrace(2) with no other kernel support required.


Regards,
Jan



More information about the Gdb mailing list