aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-06 17:32:59 +0000
committerPedro Alves <palves@redhat.com>2009-05-06 17:32:59 +0000
commita6dbe5dfa522e405c297014002cac82f05a4dc68 (patch)
tree8acbd7656fecab4a70d39d688b37ee35024787be /gdb/gdbserver/linux-low.h
parenta562dc8f5a5930afaa5ffb3e98200e21dd8b724a (diff)
downloadgdb-a6dbe5dfa522e405c297014002cac82f05a4dc68.zip
gdb-a6dbe5dfa522e405c297014002cac82f05a4dc68.tar.gz
gdb-a6dbe5dfa522e405c297014002cac82f05a4dc68.tar.bz2
PR server/10048
* linux-low.c (must_set_ptrace_flags): Delete. (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead of the global. (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set `lwp->must_set_ptrace_flags' instead. (linux_wait_for_event_1): If ptrace options here. (linux_wait_1): ... not here.
Diffstat (limited to 'gdb/gdbserver/linux-low.h')
-rw-r--r--gdb/gdbserver/linux-low.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h
index b076c5d..fc93a0e 100644
--- a/gdb/gdbserver/linux-low.h
+++ b/gdb/gdbserver/linux-low.h
@@ -146,6 +146,10 @@ struct lwp_info
was a single-step. */
int stepping;
+ /* If this flag is set, we need to set the event request flags the
+ next time we see this LWP stop. */
+ int must_set_ptrace_flags;
+
/* If this is non-zero, it points to a chain of signals which need to
be delivered to this process. */
struct pending_signals *pending_signals;