This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB library to insert and delete watchpoints
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Aravinda <aravindakidambi at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 1 Dec 2009 22:14:25 +0100
- Subject: Re: GDB library to insert and delete watchpoints
- References: <26eb53620911301516x68ccc0edkf64ba2951c8ce3a3@mail.gmail.com> <26eb53620911301518y13e64bc0g95c6fe3c7b18b0c@mail.gmail.com>
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