This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/win32] Avoid a couple of name collisions in win32-nat.c
- 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 11:57:34 -0500
- Subject: Re: [RFA/win32] Avoid a couple of name collisions in win32-nat.c
- References: <20090107112422.GB1751@adacore.com>
On Wed, Jan 07, 2009 at 03:24:22PM +0400, Joel Brobecker wrote:
>This patch simply renames a couple of global variables that are pointers
>to routines imported from kernel32. The reason why they need to be
>renamed is that the names chosen were identical to the name in kernel32,
>and the declaration is clashing with the declaration in winbase.h.
>I followed the example of the routines imported in psapi.dll where
>the name is prefixed by psapi_.
>
>2009-01-07 Joel Brobecker <brobecker@adacore.com>
>
> * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
> DebugSetProcessKillOnExit. Update all uses in this file.
> (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
> Update all uses in this file.
>
>Tested on x86-windows.
>
>OK to apply?
Ah, should have read further. I don't understand why this is now a
problem. What changed?
cgf