aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-10-26 13:24:01 -0700
committerDoug Evans <dje@google.com>2015-10-26 13:24:01 -0700
commit963843d4d07aef6caa296dacf191f8adc9518596 (patch)
tree8e5fa9f2284230b01a914a09a9f8abe78e9a76d2 /gdb/common
parentd41401ace01c234f42697e190a2ac95991780626 (diff)
downloadgdb-963843d4d07aef6caa296dacf191f8adc9518596.zip
gdb-963843d4d07aef6caa296dacf191f8adc9518596.tar.gz
gdb-963843d4d07aef6caa296dacf191f8adc9518596.tar.bz2
musl: Move W_STOPCODE to common/gdb_wait.h.
gdb/ChangeLog: * common/gdb_wait.h (W_STOPCODE): Define, moved here from gdbserver/linux-low.c. (WSETSTOP): Simplify. gdb/gdbserver/ChangeLog: * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/gdb_wait.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/common/gdb_wait.h b/gdb/common/gdb_wait.h
index 9b250d2..412f813 100644
--- a/gdb/common/gdb_wait.h
+++ b/gdb/common/gdb_wait.h
@@ -85,12 +85,12 @@
# endif
#endif
+#ifndef W_STOPCODE
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
+#endif
+
#ifndef WSETSTOP
-# ifdef W_STOPCODE
#define WSETSTOP(w,sig) ((w) = W_STOPCODE(sig))
-# else
-#define WSETSTOP(w,sig) ((w) = (0177 | ((sig) << 8)))
-# endif
#endif
/* For native GNU/Linux we may use waitpid and the __WCLONE option.