From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1438 invoked by alias); 1 Dec 2007 18:56:21 -0000 Received: (qmail 1429 invoked by uid 22791); 1 Dec 2007 18:56:20 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 01 Dec 2007 18:56:14 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A4FE298249; Sat, 1 Dec 2007 18:56:12 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 671AD98248; Sat, 1 Dec 2007 18:56:12 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IyXVb-0006Ni-IW; Sat, 01 Dec 2007 13:56:11 -0500 Date: Sat, 01 Dec 2007 18:56:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org, Lerele Subject: Re: [gdbserver/win32] (4/11) New interrupting method Message-ID: <20071201185611.GC24231@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, Lerele References: <4737B553.2040302@portugalmail.pt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4737B553.2040302@portugalmail.pt> User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00018.txt.bz2 On Mon, Nov 12, 2007 at 02:07:15AM +0000, Pedro Alves wrote: > 2007-11-12 Leo Zayas > Pedro Alves > > * win32-low.c (soft_interrupt_requested, faked_breakpoint): New > global variables. > (child_add_thread): Minor cleanup. > (child_continue): Resume artificially suspended threads before > calling ContinueDebugEvent. > (suspend_one_thread): New. > (fake_breakpoint_event): New. > (get_child_debug_event): Change return type to int. Check here if > gdb sent an interrupt request. If a soft interrupt was > requested, fake a breakpoint event. Return 0 if there is no event > to handle, and 1 otherwise. > (win32_wait): Don't check here if gdb sent an interrupt request. > Ensure there is a valid event to handle. > (win32_request_interrupt): Add soft interruption method as last resort. This looks OK to me. -- Daniel Jacobowitz CodeSourcery