gdbserver: Use pattern rule for objects from target/
[deliverable/binutils-gdb.git] / gdb / inf-ptrace.c
index f61bfe7d64be5242dc50199c68e13986154ffeda..215787425f8818b42f089a4270a2b30e15b7ae86 100644 (file)
@@ -79,7 +79,8 @@ static void
 inf_ptrace_me (void)
 {
   /* "Trace me, Dr. Memory!"  */
-  ptrace (PT_TRACE_ME, 0, (PTRACE_TYPE_ARG3)0, 0);
+  if (ptrace (PT_TRACE_ME, 0, (PTRACE_TYPE_ARG3) 0, 0) < 0)
+    trace_start_error_with_name ("ptrace");
 }
 
 /* Start a new inferior Unix child process.  EXEC_FILE is the file to
This page took 0.034092 seconds and 4 git commands to generate.