From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10783 invoked by alias); 22 Sep 2009 13:30:44 -0000 Received: (qmail 10773 invoked by uid 22791); 22 Sep 2009 13:30:44 -0000 X-Spam-Check-By: sourceware.org Received: from pool-98-110-183-151.bstnma.fios.verizon.net (HELO cgf.cx) (98.110.183.151) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Sep 2009 13:30:40 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id DFE193B0002; Tue, 22 Sep 2009 09:30:30 -0400 (EDT) Received: by ednor.cgf.cx (Postfix, from userid 201) id DF36A2B352; Tue, 22 Sep 2009 09:30:30 -0400 (EDT) Date: Tue, 22 Sep 2009 13:30:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org, Pierre Muller Subject: Re: [RFA] windows-nat.c Cygwin save_context fix Message-ID: <20090922133030.GE28499@ednor.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org, Pierre Muller References: <001d01ca3ace$4878c9f0$d96a5dd0$@u-strasbg.fr> <20090921222637.GC17886@ednor.casa.cgf.cx> <000001ca3b0b$d8310250$889306f0$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001ca3b0b$d8310250$889306f0$@u-strasbg.fr> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00700.txt.bz2 On Tue, Sep 22, 2009 at 12:35:38AM +0200, Pierre Muller wrote: >cgf wrote: >>would just removing the "have_saved_context = 0;" from >>do_windows_fetch_inferior_registers fix the problem? > >But them we need to be really careful about to where we should reset it >to zero, otherwise we might end up by still copying saved_context, even >after having reran the debuggee, no? No. It's reset every time there is a debug event. cgf