[gdbserver] Fix toolhelp usage on Windows CE

Daniel Jacobowitz drow@false.org
Tue Jul 31 03:01:00 GMT 2007


On Tue, Jul 31, 2007 at 12:28:32AM +0100, Pedro Alves wrote:
> Hi,
> 
> On Windows CE, the toolhelp functionality  is implemented on
> its own dll.  Additionally, (and because of the former), the snapshots
> must be closed with a special close
> function - CloseToolhelp32Snapshot - unlike the "desktop" Windows
> versions, which use the standard CloseHandle.  The current code isn't
> doing it right.  This patch fixes it.
> 
> (in case the toolhelp_get_dll_name hunk isn't clear in
> the diff, I'm just 'reorganizing a bit'/'removing the goto'
> to minimize the #ifdefery.)
> 
> OK?

OK, thanks.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list