From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3312 invoked by alias); 1 Dec 2007 19:01:00 -0000 Received: (qmail 3298 invoked by uid 22791); 1 Dec 2007 19:00:57 -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 19:00:46 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id DB7AF98249; Sat, 1 Dec 2007 19:00:44 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id C43B798248; Sat, 1 Dec 2007 19:00:44 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1IyXa0-0006SM-5S; Sat, 01 Dec 2007 14:00:44 -0500 Date: Sat, 01 Dec 2007 19:01:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org, Lerele Subject: Re: [gdbserver/wince] (7/11) Make the new interrupt method actually always work in WinCE Message-ID: <20071201190044.GF24231@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org, Lerele References: <4737B583.6040304@portugalmail.pt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4737B583.6040304@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/msg00021.txt.bz2 On Mon, Nov 12, 2007 at 02:08:03AM +0000, Pedro Alves wrote: > So, what this patch does, is implement the same workaround MSFT's > debugger uses. Don't set the context back to the inferior, unless > it has been explicitly changed by gdb or gdbserver. Actually, it > is a little bit better, as it won't crash if the user sets some > register's contents back to what it was when the inferior stopped. This is all really nasty. Does this mean the register values we report to GDB may actually change before the process stops? > 2007-11-12 Pedro Alves > > * win32-low.c (win32_get_thread_context) > (win32_set_thread_context): New. > (thread_rec): Use win32_get_thread_context. > (continue_one_thread, win32_resume): Use win32_set_thread_context. > * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' > field. OK, I suppose. -- Daniel Jacobowitz CodeSourcery