From aa7c744796a067e1533b21e7d58aa30e6f3d12c8 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sat, 7 Jul 2012 12:13:57 +0000 Subject: 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. --- gdb/common/linux-ptrace.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/common/linux-ptrace.h') diff --git a/gdb/common/linux-ptrace.h b/gdb/common/linux-ptrace.h index 6315b13..96ad33d 100644 --- a/gdb/common/linux-ptrace.h +++ b/gdb/common/linux-ptrace.h @@ -68,5 +68,6 @@ struct buffer; #endif extern void linux_ptrace_attach_warnings (pid_t pid, struct buffer *buffer); +extern void linux_ptrace_init_warnings (void); #endif /* COMMON_LINUX_PTRACE_H */ -- cgit v1.1