1 From 963843d4d07aef6caa296dacf191f8adc9518596 Mon Sep 17 00:00:00 2001
2 From: Doug Evans <dje@google.com>
3 Date: Mon, 26 Oct 2015 13:24:01 -0700
4 Subject: [PATCH] musl: Move W_STOPCODE to common/gdb_wait.h.
8 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
12 gdb/gdbserver/ChangeLog:
14 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
16 [Arnout: removed the parts that don't apply, including ChangeLog]
17 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
19 gdb/ChangeLog | 6 ++++++
20 gdb/common/gdb_wait.h | 8 ++++----
21 gdb/gdbserver/ChangeLog | 4 ++++
22 gdb/gdbserver/linux-low.c | 4 ----
23 4 files changed, 14 insertions(+), 8 deletions(-)
25 diff --git a/gdb/common/gdb_wait.h b/gdb/common/gdb_wait.h
26 index 9b250d2..412f813 100644
27 --- a/gdb/common/gdb_wait.h
28 +++ b/gdb/common/gdb_wait.h
34 +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
39 #define WSETSTOP(w,sig) ((w) = W_STOPCODE(sig))
41 -#define WSETSTOP(w,sig) ((w) = (0177 | ((sig) << 8)))
45 /* For native GNU/Linux we may use waitpid and the __WCLONE option.
46 diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
47 index 0c552b8..7ed67c7 100644
48 --- a/gdb/gdbserver/linux-low.c
49 +++ b/gdb/gdbserver/linux-low.c
55 -#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
58 /* This is the kernel's hard limit. Not to be confused with