diff options
author | Tom Tromey <tromey@redhat.com> | 2014-01-03 10:55:52 -0700 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-07-24 15:06:39 +0100 |
commit | 8009206ae2dec541b55edc488103c6c1ccb1416a (patch) | |
tree | f62cd64d3cf8d4922956fc9effc3f7f250199649 /gdb/nat/linux-ptrace.h | |
parent | 314c6a3559393741f22fdd9836f83d9f364fbd2a (diff) | |
download | gdb-8009206ae2dec541b55edc488103c6c1ccb1416a.zip gdb-8009206ae2dec541b55edc488103c6c1ccb1416a.tar.gz gdb-8009206ae2dec541b55edc488103c6c1ccb1416a.tar.bz2 |
Remove some GDBSERVER checks from linux-ptrace
This patch removes some GDBSERVER checks from nat/linux-ptrace.c.
Currently the code uses a compile-time check to decide whether some
flags should be used. This changes the code to instead let users of
the module specify an additional set of flags; and then changes gdb's
linux-nat.c to call this function. At some later date, when the back
ends are fully merged, we will be able to remove this function again.
gdb/
2014-07-24 Tom Tromey <tromey@redhat.com>
Gary Benson <gbenson@redhat.com>
* nat/linux-ptrace.c (additional_flags): New global.
(linux_test_for_tracesysgood, linux_test_for_tracefork): Use
additional_flags; don't check GDBSERVER.
(linux_ptrace_set_additional_flags): New function.
* nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
Declare.
* linux-nat.c (_initialize_linux_nat): Call
linux_ptrace_set_additional_flags.
Diffstat (limited to 'gdb/nat/linux-ptrace.h')
-rw-r--r-- | gdb/nat/linux-ptrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h index cffb5ce..41b3198 100644 --- a/gdb/nat/linux-ptrace.h +++ b/gdb/nat/linux-ptrace.h @@ -91,5 +91,6 @@ extern int linux_supports_tracefork (void); extern int linux_supports_traceclone (void); extern int linux_supports_tracevforkdone (void); extern int linux_supports_tracesysgood (void); +extern void linux_ptrace_set_additional_flags (int); #endif /* COMMON_LINUX_PTRACE_H */ |