]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/procfs.c
gdb/
[thirdparty/binutils-gdb.git] / gdb / procfs.c
index 1dd39b2e7fc9bbab80bff06916e58905c48b35e1..6413ed039bf63cb9b88a8b7418fbc1e2e1c96d36 100644 (file)
@@ -3606,10 +3606,8 @@ procfs_attach (struct target_ops *ops, char *args, int from_tty)
   char *exec_file;
   int   pid;
 
-  if (!args)
-    error_no_arg (_("process-id to attach"));
+  pid = parse_pid_to_attach (args);
 
-  pid = atoi (args);
   if (pid == getpid ())
     error (_("Attaching GDB to itself is not a good idea..."));