* windows-nat.c (DebugActiveProcessStop): Implement macro wraparound for
authorChristopher Faylor <me+cygwin@cgf.cx>
Sun, 22 Mar 2009 21:27:30 +0000 (21:27 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sun, 22 Mar 2009 21:27:30 +0000 (21:27 +0000)
commit2b008701dc388692b80774c1913c55d54be5c320
tree34af7c3b0a555946cbded759bce2bacba46c47f5
parentbcd5727bdddbf3063b7a8714708a95863d811a9d
* windows-nat.c (DebugActiveProcessStop): Implement macro wraparound for
dynamically loaded function.
(DebugBreakProcess): Ditto.
(DebugSetProcessKillOnExit): Ditto.
(EnumProcessModules): Ditto.
(GetModuleFileNameExA): Ditto.
(GetModuleInformation): Ditto.
(DebugActiveProcessStop): Rename and define placeholder for address of
dynamically loaded function.  for dynamically loaded function.
(DebugBreakProcess): Ditto.
(DebugSetProcessKillOnExit): Ditto.
(EnumProcessModules): Ditto.
(GetModuleFileNameExA): Ditto.
(GetModuleInformation): Ditto.
(psapi_loaded): Delete.
(get_module_name): Don't check psapi_loaded, just rely on the fact that
dynamically loaded functions will return failure if they weren't previously
found.
(has_detach_ability): Delete.
(windows_attach): Remove call to has_detach_ability ().  Just rely on functions
being callable.
(bad_DebugActiveProcessStop): Define.
(bad_DebugBreakProcess): Ditto.
(bad_DebugSetProcessKillOnExit): Ditto.
(bad_EnumProcessModules): Ditto.
(bad_GetModuleFileNameExA): Ditto.
(bad_GetModuleInformation): Ditto.
(_initialize_loadable): Rename from _initialize_psapi.  Initialize all dynamic
storage here, setting nonexistent functions to dummy static functions which
always return error.
gdb/ChangeLog
gdb/windows-nat.c