This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 15/16] conditionally define __WCLONE
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Wed, 6 Nov 2013 10:09:59 -0700
- Subject: [PATCH v2 15/16] conditionally define __WCLONE
- Authentication-results: sourceware.org; auth=none
- References: <1383757800-6332-1-git-send-email-tromey at redhat dot com>
This copies the definition of __WCLONE into linux-ptrace.h, in case it
is needed.
2013-11-06 Tom Tromey <tromey@redhat.com>
* common/linux-ptrace.h (__WCLONE): Conditionally define.
---
gdb/ChangeLog | 4 ++++
gdb/common/linux-ptrace.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/gdb/common/linux-ptrace.h b/gdb/common/linux-ptrace.h
index 39c943e..c91ef18 100644
--- a/gdb/common/linux-ptrace.h
+++ b/gdb/common/linux-ptrace.h
@@ -83,6 +83,10 @@ struct buffer;
#define __WALL 0x40000000 /* Wait for any child. */
#endif
+#ifndef __WCLONE
+#define __WCLONE 0x80000000 /* Wait for cloned process. */
+#endif
+
extern void linux_ptrace_attach_warnings (pid_t pid, struct buffer *buffer);
extern void linux_ptrace_init_warnings (void);
extern void linux_enable_event_reporting (pid_t pid);
--
1.8.1.4