[rfc] DLL support for gdbserver

Pedro Alves pedro_alves@portugalmail.pt
Sun Jul 8 14:46:00 GMT 2007


Pedro Alves wrote:

> Attached are the patches to use solib-target.c on WinCE, and a small fix to
> gdbserver/win32-low.c to get toolhelp from toolhelp.dll instead
> of coredll.dll - not your fault, the version I sent you had it wrong.
> 

And testing on a different device showed up something I never
noticed before.  On WinCE a toolhelp snapshot is closed with
CloseToolhelp32Snapshot, while on desktop Windows, one closes
it with CloseHandle.  It is documented as producing a leak if the
wrong Close function is used, but I found it crashing on this
device ...

Sorry, I'm starting to hijack the thread.  It would be less work
for both of us to keep the patches separate.  I can post the
WinCE parts again in a new thread after this has gone in.

Cheers,
Pedro Alves



More information about the Gdb-patches mailing list