This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [gdbserver/wince] (7/11) Make the new interrupt method actually always work in WinCE
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: gdb-patches at sourceware dot org, Lerele <lerele at champenstudios dot com>
- Date: Sat, 1 Dec 2007 14:00:44 -0500
- Subject: Re: [gdbserver/wince] (7/11) Make the new interrupt method actually always work in WinCE
- References: <4737B583.6040304@portugalmail.pt>
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 <pedro_alves@portugalmail.pt>
>
> * 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