h/w watchpoint pointer initialization patch.

Jitendra Pawar jitendra@linsyssoft.com
Tue Jan 17 09:35:00 GMT 2006


Hi All,
While debugging cvs gdb, I put a h/w watch point, when this watch point
hits gdb calls target_insert_watchpoint macro. This macro defination is
present in target.h as bellow: 

	#define target_insert_watchpoint(addr, len, type)       \
	     (*current_target.to_insert_watchpoint) (addr, len, type)

In case of remote debugging *current_target.to_insert_watchpoint points
to remote_target_insert_watchpoint function, but while native debugging
it should points to <host_arch>_insert_watchpoint (e.g.
i386_insert_watchpoint) instead it points to return_minus_one function.

This patch removes declaration of macros in file gdb/config/i386/nm-
i386.h for insertion and removal of h/w watchpoints. Instead it
initializes register access methods in  gdb/i386-linux-nat.c file.
That fixes the above problem.

thanks
- Jitendra

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hw_watchpt_pointer_initialization.patch
Type: text/x-patch
Size: 1088 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060117/5dfef2aa/attachment.bin>


More information about the Gdb-patches mailing list