[gdbserver/win32] -DUNICODE support.

Pedro Alves pedro_alves@portugalmail.pt
Tue May 8 02:09:00 GMT 2007


Hi all,

I noticed that building gdbserver -DUNICODE is broken.

One reason is that when I done the WinCE port of gdbserver, I
missed the fact that there is no GetProcAddressW on desktop
Windows - There is only an ANSI GetProcAddress, without
the A suffix.  On WinCE GetProcAddress is Wide.  Another reason is
that we are using the CreateProcess macro, which maps to
CreateProcessW when UNICODE is defined.  Since the string parameters
we hold by the time we get to the CreateProcess call are all char*,
we might as well force use CreateProcessA always.  Tested by
building gdbserver on i686-pc-cygwin, i686-pc-mingw with and
without -DUNICODE, and on arm-mingw32ce, which is always UNICODE.
And by confirming that the GetProcAddress calls return
valid pointers on MinGW with -DUNICODE.

OK?

Cheers,
Pedro Alves

-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicode.diff
Type: text/x-diff
Size: 4731 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070508/745d0165/attachment.bin>


More information about the Gdb-patches mailing list