This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/win32] Problem storing result of GetProcAddress
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: gdb-patches at sourceware dot org, Joel Brobecker <brobecker at adacore dot com>
- Date: Wed, 7 Jan 2009 12:03:47 -0500
- Subject: Re: [RFA/win32] Problem storing result of GetProcAddress
- References: <20090107114322.GD1751@adacore.com>
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