Welcome to mirror list, hosted at ThFree Co, Russian Federation.

core_dump.h « cygwin « include « cygwin « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 647dc2cb3a9badf196253c5ec442f7328eeb28f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* core_dump.h

   Copyright 1999 Cygnus Solutions.

   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 */