This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA 2] Debug register support in win32-nat.c (need opinions)
- From: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 04 Feb 2002 12:03:17 +0100
- Subject: Re: [RFA 2] Debug register support in win32-nat.c (need opinions)
- References: <4.2.0.58.20020114092549.00acd1d8@ics.u-strasbg.fr><20020114015821.GA1584@redhat.com><4.2.0.58.20020114092549.00acd1d8@ics.u-strasbg.fr>
At 18:20 30/01/2002 , vous avez écrit:
>On Mon, Jan 14, 2002 at 09:33:27AM +0100, Pierre Muller wrote:
> >Christopher, does this answer your concerns?
>
>I don't think I saw any dissenting opinions, so go ahead and check
>your changes in, Pierre.
OK, I checked this in with the minor modifications in the code discussed and with this
modified log entry.
PS:
I must confess that I was unable to recheck my patch as there seems to be a
configure problem for cygwin lately.
2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
Add support for hardware watchpoints for win32 native.
* win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
CONTEXT_DEBUG_REGISTERS.
(dr variable): New variable. Static array containing a local copy
of debug registers.
(debug_registers_changed): New variable. Reflects when debug registers
are changed and need to be written to inferior.
(debug_registers_used): New variable. Reflects when any debug register
was set, used when 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. Contains the macros used for use
of hardware registers.
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99