This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Hardware watchpoint for read


Hi,

On 04/24/2012 10:02 AM, Xin Tong wrote:
Hello

I am wondering that can gdb insert hardware watch point for read to
the watched memory ? can other debugger do that ? is it supported in
hardware watchpoint ?

Thanks

Xin


Read watchpoints are hard to implement as soft-watchpoints, so they're usually implemented as hardware watchpoints.


If a debugger knows how to properly set the bits in the hardware, either through ptrace or other means, it can configure a read/write/read-write watchpoint. Depends on hardware support really.

Regards,
Luis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]