PR server/16255: gdbserver cannot attach to a second inferior that is multi-threaded.
[deliverable/binutils-gdb.git] / gdb / common / linux-ptrace.c
index 7c1b78a55b62cc14a61501847c7dac2431f9aaa7..efbd1ea10bc44aa8d679077e32b1181ff1b04da2 100644 (file)
    there are no supported features.  */
 static int current_ptrace_options = -1;
 
-/* Find all possible reasons we could fail to attach PID and append these
-   newline terminated reason strings to initialized BUFFER.  '\0' termination
-   of BUFFER must be done by the caller.  */
+/* Find all possible reasons we could fail to attach PID and append
+   these as strings to the already initialized BUFFER.  '\0'
+   termination of BUFFER must be done by the caller.  */
 
 void
-linux_ptrace_attach_warnings (pid_t pid, struct buffer *buffer)
+linux_ptrace_attach_fail_reason (pid_t pid, struct buffer *buffer)
 {
   pid_t tracerpid;
 
   tracerpid = linux_proc_get_tracerpid (pid);
   if (tracerpid > 0)
-    buffer_xml_printf (buffer, _("warning: process %d is already traced "
-                                "by process %d\n"),
+    buffer_xml_printf (buffer, _("process %d is already traced "
+                                "by process %d"),
                       (int) pid, (int) tracerpid);
 
   if (linux_proc_pid_is_zombie (pid))
-    buffer_xml_printf (buffer, _("warning: process %d is a zombie "
-                                "- the process has already terminated\n"),
+    buffer_xml_printf (buffer, _("process %d is a zombie "
+                                "- the process has already terminated"),
                       (int) pid);
 }
 
This page took 0.028023 seconds and 4 git commands to generate.