* windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
authorChristopher Faylor <me+cygwin@cgf.cx>
Sun, 22 Mar 2009 22:13:21 +0000 (22:13 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sun, 22 Mar 2009 22:13:21 +0000 (22:13 +0000)
commit418c6cb3ce12492096c4f86c10227b9d9a0971f4
tree88fb0685ca6defd3c633942923627fe6876871ee
parent695de547fcbfa05456ab7d47eb539d5024ebd892
* windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
dynamically loaded function.
(LookupPrivilegeValueA): Ditto.
(OpenProcessToken): Ditto.
(AdjustTokenPrivileges): Rename and define placeholder for address of
dynamically loaded function.
(LookupPrivilegeValueA): Ditto.
(OpenProcessToken): Ditto.
(set_process_privilege): Remove check for loaded functions.
(bad_OpenProcessToken): Define.
(_initialize_loadable): Load token functions from advapi here, setting
OpenProcessToken function to a dummy static function which always return error
if OS doesn't support this functionality.
gdb/ChangeLog
gdb/windows-nat.c