[RFA/win32] Problem storing result of GetProcAddress
Christopher Faylor
cgf-use-the-mailinglist-please@sourceware.org
Wed Jan 7 17:04:00 GMT 2009
On Wed, Jan 07, 2009 at 03:43:22PM +0400, Joel Brobecker wrote:
>2009-01-07 Joel Brobecker <brobecker@adacore.com>
>
> * win32-nat.c (has_detach_ability, set_process_privilege):
> Cast the result of GetProcAddress to (void *) to avoid
> a compilation warning.
>
>Tested on x86-windows. Note that this depends on one of my previous
>patches that renames certain global variables:
>
> | * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
> | DebugSetProcessKillOnExit. Update all uses in this file.
> | (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
> | Update all uses in this file.
>
>OK to apply?
Yes. I guess that means that the rename to prefix kernel32_ is approved
too but I'd appreciate it if you would universally add the kernel32_ prefix
to everything that is dynamically derived from kernel32.
cgf
More information about the Gdb-patches
mailing list