Replace ../include/wait.h with gdb_wait.h.
[deliverable/binutils-gdb.git] / gdb / exec.c
index 2ff76e87eea5b24d0cc38d2e3b6dfe86371fb216..6381e63e358b3ee7d0d40039c99ebd1f867cbc2f 100644 (file)
@@ -198,7 +198,7 @@ exec_file_attach (args, from_tty)
        {;
        }
       if (*argv == NULL)
-       error ("no exec file name was specified");
+       error ("No executable file name was specified");
 
       filename = tilde_expand (*argv);
       make_cleanup (free, filename);
@@ -227,7 +227,7 @@ exec_file_attach (args, from_tty)
          same malloc'd string.  However exec_close() will attempt to free it
          via the exec_bfd->name pointer, so we need to make another copy and
          leave exec_bfd as the new owner of the original copy. */
-      scratch_pathname = strdup (scratch_pathname);
+      scratch_pathname = xstrdup (scratch_pathname);
       make_cleanup (free, scratch_pathname);
 
       if (!bfd_check_format (exec_bfd, bfd_object))
This page took 0.023331 seconds and 4 git commands to generate.