PR server/16255: gdbserver cannot attach to a second inferior that is multi-threaded.
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-low.h
index 7459710dacfdd8f305c1e358367d554a934defbf..cd3001dec95acb85ea1367e04ddbfaac3deb5390 100644 (file)
@@ -343,7 +343,16 @@ struct lwp_info
 
 int linux_pid_exe_is_elf_64_file (int pid, unsigned int *machine);
 
-void linux_attach_lwp (unsigned long pid);
+/* Attach to PTID.  Returns 0 on success, non-zero otherwise (an
+   errno).  */
+int linux_attach_lwp (ptid_t ptid);
+
+/* Return the reason an attach failed, in string form.  ERR is the
+   error returned by linux_attach_lwp (an errno).  This string should
+   be copied into a buffer by the client if the string will not be
+   immediately used, or if it must persist.  */
+char *linux_attach_fail_reason_string (ptid_t ptid, int err);
+
 struct lwp_info *find_lwp_pid (ptid_t ptid);
 void linux_stop_lwp (struct lwp_info *lwp);
 
This page took 0.024015 seconds and 4 git commands to generate.