This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Build question
On Fri, 2009-09-11 at 16:22 +0100, Pedro Alves wrote:
> DebugActiveProcessStop = GETPROCADDRESS (dll, DebugActiveProcessStop);
> DebugSetProcessKillOnExit = GETPROCADDRESS (dll, DebugSetProcessKillOnExit);
>
> if (DebugSetProcessKillOnExit == NULL
> || DebugActiveProcessStop == NULL)
> return -1;
>
> Try checking if DebugActiveProcessStop is non-NULL here on
> your CE >= 6.0 device, and tweak this code to make it possible to detach
> with DebugActiveProcessStop even if we don't support
> DebugSetProcessKillOnExit.
Apologies, I forgot to answer this part of the mail.
\network\x86> testapi coredll DebugActiveProcessStop
coredll implements DebugActiveProcessStop (0x4003F4F0)
\network\x86> testapi coredll DebugSetProcessKillOnExit
coredll implements DebugSetProcessKillOnExit (0x4003F510)
\network\x86>
My testapi utility basically does what you asked (LoadLibrary -
GetProcAddress - print the result).
I'll look into this.
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info