diff options
author | Christopher Faylor <me@cgf.cx> | 2005-05-17 01:21:06 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-05-17 01:21:06 +0000 |
commit | 5c8e6fbd8cba2653984ca48d8a1872b3e6974a2c (patch) | |
tree | 4e30129e6b969d33e959b90a7fcc09946e8d8c98 /winsup/cygwin/external.cc | |
parent | b55ba2f3da13dc697c57d7efe3b98c75da2a87b5 (diff) | |
download | newlib-5c8e6fbd8cba2653984ca48d8a1872b3e6974a2c.zip newlib-5c8e6fbd8cba2653984ca48d8a1872b3e6974a2c.tar.gz newlib-5c8e6fbd8cba2653984ca48d8a1872b3e6974a2c.tar.bz2 |
* include/sys/cygwin.h (enum cygwin_getinfo_types): Add CW_DEBUG_SELF.
* external.cc (cygwin_internal): Implement CW_DEBUG_SELF.
* init.cc (dll_entry): Minor rearrangement of code.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 5268b86..6d618c9 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -311,13 +311,17 @@ cygwin_internal (cygwin_getinfo_types t, ...) case CW_ARGV: { child_info_spawn *ci = (child_info_spawn *) get_cygwin_startup_info (); - return (DWORD) (ci ? ci->moreinfo->argv : NULL); + return (unsigned long) (ci ? ci->moreinfo->argv : NULL); } case CW_ENVP: { child_info_spawn *ci = (child_info_spawn *) get_cygwin_startup_info (); - return (DWORD) (ci ? ci->moreinfo->envp : NULL); + return (unsigned long) (ci ? ci->moreinfo->envp : NULL); } + case CW_DEBUG_SELF: + error_start_init (va_arg (arg, const char *)); + try_to_debug (); + break; default: return (DWORD) -1; } |