OSDN Git Service

* win32-nat.c (psapi_module_handle): Remove static.
authorChristopher Faylor <me+cygwin@cgf.cx>
Tue, 1 Jan 2008 18:42:08 +0000 (18:42 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Tue, 1 Jan 2008 18:42:08 +0000 (18:42 +0000)
commitf4a0be6db738ecd1c96494f675046e39dcca7c98
tree42620534dce8046ef25ffa10c1d9aa38b3c4eb06
parentbd85f4d4e1a7cd6444a34af81a9fee2bc94402ac
* win32-nat.c (psapi_module_handle): Remove static.
(get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to return
first module found if base_address is zero.  Don't initialize psapi function
pointers here.  Convert to cygwin paths when appropriate.
(win32_pid_to_exec_file): Use Cygwin's /proc interface to determine executable
name.  Use get_module_name when that fails or when !__CYGWIN__.
(_initialize_psapi): New function.  Initialize psapi stuff before it is needed
or issue a warning if it is not found.  Move psapi_module_handle here.
gdb/ChangeLog
gdb/win32-nat.c