gdb/
[deliverable/binutils-gdb.git] / gdb / nto-procfs.c
index d8f3c91a8274490b1a0bb9657130418263c680f6..3d62ff8a87fad7d7f0063131cf883e3bb25b3d15 100644 (file)
@@ -619,10 +619,7 @@ procfs_attach (struct target_ops *ops, char *args, int from_tty)
   int pid;
   struct inferior *inf;
 
-  if (!args)
-    error_no_arg (_("process-id to attach"));
-
-  pid = atoi (args);
+  pid = parse_pid_to_attach (args);
 
   if (pid == getpid ())
     error (_("Attaching GDB to itself is not a good idea..."));
This page took 0.023754 seconds and 4 git commands to generate.