Cygwin: strace: print windows and cygwin pid in event output
strace only printed the Windows PID in event output so far. Especially now that Windows and Cygwin PID are decoupled, the strace user might like to see the Cygwin pid in event output as well. However, at process startup, the process might not have a Cygwin PID yet. To mitigate this, always print the Windows PID and only add the Cygwin pid if it exists. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -159,6 +159,7 @@ typedef enum
|
||||
CW_EXCEPTION_RECORD_FROM_SIGINFO_T,
|
||||
CW_CYGHEAP_PROFTHR_ALL,
|
||||
CW_WINPID_TO_CYGWIN_PID,
|
||||
CW_MAX_CYGWIN_PID,
|
||||
} cygwin_getinfo_types;
|
||||
|
||||
#define CW_LOCK_PINFO CW_LOCK_PINFO
|
||||
@ -222,6 +223,7 @@ typedef enum
|
||||
#define CW_EXCEPTION_RECORD_FROM_SIGINFO_T CW_EXCEPTION_RECORD_FROM_SIGINFO_T
|
||||
#define CW_CYGHEAP_PROFTHR_ALL CW_CYGHEAP_PROFTHR_ALL
|
||||
#define CW_WINPID_TO_CYGWIN_PID CW_WINPID_TO_CYGWIN_PID
|
||||
#define CW_MAX_CYGWIN_PID CW_MAX_CYGWIN_PID
|
||||
|
||||
/* Token type for CW_SET_EXTERNAL_TOKEN */
|
||||
enum
|
||||
|
Reference in New Issue
Block a user