From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14024 invoked by alias); 3 Dec 2007 03:53:36 -0000 Received: (qmail 14014 invoked by uid 22791); 3 Dec 2007 03:53:35 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Dec 2007 03:53:28 +0000 Received: by ug-out-1314.google.com with SMTP id h2so2011803ugf for ; Sun, 02 Dec 2007 19:53:27 -0800 (PST) Received: by 10.66.233.14 with SMTP id f14mr3259054ugh.1196654007052; Sun, 02 Dec 2007 19:53:27 -0800 (PST) Received: from ?78.130.100.26? ( [78.130.100.26]) by mx.google.com with ESMTPS id o24sm1407280ugd.2007.12.02.19.53.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 Dec 2007 19:53:26 -0800 (PST) Message-ID: <4753648E.1040902@portugalmail.pt> Date: Mon, 03 Dec 2007 03:53:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org, Lerele Subject: Re: [gdbserver/win32] (3/11) Fix suspend count handling References: <4737B543.80607@portugalmail.pt> <20071201185337.GB24231@caradoc.them.org> In-Reply-To: <20071201185337.GB24231@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2007-12/txt/msg00036.txt.bz2 Daniel Jacobowitz wrote: > > gdb.threads would be good, I think. > Will do that. >> 2007-11-12 Leo Zayas >> Pedro Alves >> >> * win32-low.h (win32_thread_info): Add descriptions to the >> structure members . Replace `suspend_count' counter by a >> `suspended' flag. >> >> * win32-low.c (thread_rec): Update condition of when to get the >> context from the inferior. Rely on ContextFlags being set if it >> has already been retrieved. Only suspend the inferior thread if >> we haven't already. Warn if that fails. >> (continue_one_thread): s/suspend_count/suspended/. Only call >> ResumeThread once. Warn if that fails. > > OK. > Thanks, checked in. -- Pedro Alves