aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-low.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-07 12:13:57 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-07 12:13:57 +0000
commitaa7c744796a067e1533b21e7d58aa30e6f3d12c8 (patch)
tree98ecb2c393bda1e81b72b416030ebe1f0904cedb /gdb/gdbserver/linux-low.c
parent889003ed52d067a971c7e1ed8e0968d91264d273 (diff)
downloadgdb-aa7c744796a067e1533b21e7d58aa30e6f3d12c8.zip
gdb-aa7c744796a067e1533b21e7d58aa30e6f3d12c8.tar.gz
gdb-aa7c744796a067e1533b21e7d58aa30e6f3d12c8.tar.bz2
gdb/
* common/linux-ptrace.c: Include gdb_assert.h. <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration. <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and stdint.h. (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New functions. * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations. * linux-nat.c (linux_child_post_attach) (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings. gdb/gdbserver/ * gdbserver/linux-low.c (initialize_low): Call linux_ptrace_init_warnings.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r--gdb/gdbserver/linux-low.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 48134c3..a476031 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -5878,6 +5878,7 @@ initialize_low (void)
the_low_target.breakpoint_len);
linux_init_signals ();
linux_test_for_tracefork ();
+ linux_ptrace_init_warnings ();
#ifdef HAVE_LINUX_REGSETS
for (num_regsets = 0; target_regsets[num_regsets].size >= 0; num_regsets++)
;