This is the mail archive of the
mailing list for the GDB project.
Re: RFA: minor watchpoint code cleanup
> We probably could
> use the same logic for choosing the appropriate debug registers, but
> the way the registers are accessed wil differ considerably among the
> various i386 targets.
Of course. As far as DJGPP is concerned, accessing the registers it
outside the scope of GDB (it's part of the library functions which
support the debug API). All go32-nat.c does is to pass an array with
debug register definitions to the function which runs the debuggee.
I did mean the code which manages the debug registers image maintained
by platform-specific code in GDB. That part ought to be quite generic
on all x86 targets which use debug registers for watchpoints, modulo
Peter's comment about leaving a possibility to override that for