aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 94e0a0d..3b9ecfa 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -302,10 +302,7 @@ exec_file_command (char *args, int from_tty)
/* Scan through the args and pick up the first non option arg
as the filename. */
- argv = buildargv (args);
- if (argv == NULL)
- nomem (0);
-
+ argv = gdb_buildargv (args);
make_cleanup_freeargv (argv);
for (; (*argv != NULL) && (**argv == '-'); argv++)