[Mingw-users] Global variable "_pgmptr" uninitialized in mingwrt-3.21 and later

Back to archive index
Keith Marshall keith****@users*****
Wed Sep 2 05:48:30 JST 2020


This is primarily a heads-up: I discovered it while testing my strategy
for invocation of GDB, such that it will use python-2.7, if available,
but does not require it.

I alluded to the issue in list posting:
https://osdn.net/projects/mingw/lists/archive/users/2020-September/000625.html

According to Microsoft's documentation for GetModuleFileName():
https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-getmodulefilenamea
> The global variable _pgmptr is automatically initialized to the
> full path of the executable file, and can be used to retrieve the
> full path name of an executable file.
I guess that not many MinGW users rely on this, because mingwrt hasn't
performed this initialization, since the release of mingwrt-3.21, back
in December 2014.

I've filed a bug report:
https://osdn.net/projects/mingw/ticket/40696

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200901/c98a3f14/attachment.sig>


More information about the MinGW-Users mailing list
Back to archive index