Files
newlib/winsup/cygwin/include/cygwin/core_dump.h
Eric Blake 9067d19b9a headers: properly decorate attributes
As pointed out here:
https://cygwin.com/ml/cygwin/2014-07/msg00371.html

any use of __attribute__ in a header that can be included by a user
should be namespace-safe, by decorating the attribute arguments with __
(while gcc does a lousy job at documenting it, ALL attributes have a __
counterpart, precisely so that public headers can use attributes without
risk of collision with macros belonging to user namespace).

* include/pthread.h: Decorate attribute names with __, for
namespace safety.
* include/cygwin/core_dump.h: Likewise.
* include/cygwin/cygwin_dll.h: Likewise.
* include/sys/cygwin.h: Likewise.
* include/sys/strace.h: Likewise.
2014-08-01 15:48:37 +00:00

74 lines
1.3 KiB
C

/* core_dump.h
Copyright 1999, 2000, 2001, 2014 Red Hat, Inc.
Written by Egor Duda <deo@logos-m.ru>
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#ifndef _CYGWIN_CORE_DUMP_H
#define _CYGWIN_CORE_DUMP_H
#include <windows.h>
#define NOTE_INFO_PROCESS 1
#define NOTE_INFO_THREAD 2
#define NOTE_INFO_MODULE 3
struct win32_core_process_info
{
DWORD pid;
int signal;
int command_line_size;
char command_line[1];
}
#ifdef __GNUC__
__attribute__ ((__packed__))
#endif
;
struct win32_core_thread_info
{
DWORD tid;
BOOL is_active_thread;
CONTEXT thread_context;
}
#ifdef __GNUC__
__attribute__ ((__packed__))
#endif
;
struct win32_core_module_info
{
void* base_address;
int module_name_size;
char module_name[1];
}
#ifdef __GNUC__
__attribute__ ((__packed__))
#endif
;
struct win32_pstatus
{
unsigned long data_type;
union
{
struct win32_core_process_info process_info;
struct win32_core_thread_info thread_info;
struct win32_core_module_info module_info;
} data ;
}
#ifdef __GNUC__
__attribute__ ((__packed__))
#endif
;
typedef struct win32_pstatus win32_pstatus_t ;
#endif /* _CYGWIN_CORE_DUMP_H */