This is a follow up of my first proposal for win32 debug register support (which enables hardware watchpoints, I never tested the hardware breakpoints, as they don't have much advantages over normal breakpoints on i386 processors). This second patch does solve one remaining problem, that was related to the fact that a thead created after a watchpoint was enabled didn't get the address watched from beginning of the thread. This makes this win32 watchpoints enabled for all threads (which seems to be different from the linux case, where watchpoints seem to be thread specific). The unwanted output that is generated at each DLL loading is still not solved, but this is also the case for each dynamic library loading under i386 linux. 2002-01-08 Pierre Muller * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of CONTEXT_DEBUG_REGISTERS. (dr variable): New static array containing a local copy of debug registers. (debug_registers_changed): Non zero whenever the debug registers where changed and need to be written to inferior. (debug_registers_used): Non zero if any debug register was set, used new new threads are created. (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by i386-nat code. (thread_rec): Set dr array if id is the thread of current_event . (child_continue, child_resume): Change the debug registers for all threads if debug_registers_changed. (child_add_thread): Change the debug registers if debug_registers_used. * config/i386/cygwin.mh: Add use of i386-nat.o file. Link nm.h to new nm-cygwin.h file. + config/i386/nm-cygwin.h: New file.