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

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-08-24 22:39:27 +0400
committerChristopher Faylor <me@cgf.cx>2000-08-24 22:39:27 +0400
commit78b8497ba3d6cc00f0221d7a41afe12a4945ca9e (patch)
tree1c45e566485a03dc64296438e70ef59f2127aea0
parent5a41f96dbb4255a55f2aad487a70856275eaf354 (diff)
* include/cygwin/core_dump.h: New file, contains structures used in cygwin core
core files. * include/sys/procfs.h: New file, needed to autoconfigure cygwin core dumps support in bfd.
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/include/cygwin/core_dump.h73
-rw-r--r--winsup/cygwin/include/sys/procfs.h11
3 files changed, 91 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c0937b216..81e7aeae0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,10 @@
+Thu Aug 24 14:33:46 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * include/cygwin/core_dump.h: New file, contains structures used in
+ cygwin core core files.
+ * include/sys/procfs.h: New file, needed to autoconfigure cygwin core
+ dumps support in bfd.
+
Thu Aug 24 13:50:15 2000 Christopher Faylor <cgf@cygnus.com>
* environ.cc (parse_thing): nobinmode should force O_TEXT.
diff --git a/winsup/cygwin/include/cygwin/core_dump.h b/winsup/cygwin/include/cygwin/core_dump.h
new file mode 100644
index 000000000..647dc2cb3
--- /dev/null
+++ b/winsup/cygwin/include/cygwin/core_dump.h
@@ -0,0 +1,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 */
diff --git a/winsup/cygwin/include/sys/procfs.h b/winsup/cygwin/include/sys/procfs.h
new file mode 100644
index 000000000..e30da5dc0
--- /dev/null
+++ b/winsup/cygwin/include/sys/procfs.h
@@ -0,0 +1,11 @@
+/*
+ * sys/procfs.h header file for Cygwin.
+ *
+ */
+
+#ifndef _SYS_PROCFS_H
+#define _SYS_PROCFS_H
+
+#include <cygwin/core_dump.h>
+
+#endif /* _SYS_PROCFS_H */