From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15268 invoked by alias); 4 Feb 2002 11:04:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15146 invoked from network); 4 Feb 2002 11:04:11 -0000 Received: from unknown (HELO cerbere.u-strasbg.fr) (130.79.112.7) by sources.redhat.com with SMTP; 4 Feb 2002 11:04:11 -0000 Received: from laocoon (laocoon.u-strasbg.fr [130.79.112.72]) by cerbere.u-strasbg.fr (8.9.3/8.8.7) with ESMTP id MAA29569 for ; Mon, 4 Feb 2002 12:04:10 +0100 Message-Id: <4.2.0.58.20020204105344.019677b8@ics.u-strasbg.fr> X-Sender: muller@ics.u-strasbg.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 04 Feb 2002 03:04:00 -0000 To: gdb-patches@sources.redhat.com From: Pierre Muller Subject: Re: [RFA 2] Debug register support in win32-nat.c (need opinions) In-Reply-To: <20020130172020.GI6543@redhat.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-SW-Source: 2002-02/txt/msg00066.txt.bz2 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 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