projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
[deliverable/binutils-gdb.git]
/
gdb
/
interps.c
diff --git
a/gdb/interps.c
b/gdb/interps.c
index 3bb7811ed8e54dfc065ad5df47b651b31450e323..73bc51c6d83549581a6e400b4d12939a0a71dc74 100644
(file)
--- a/
gdb/interps.c
+++ b/
gdb/interps.c
@@
-371,20
+371,15
@@
interpreter_exec_cmd (char *args, int from_tty)
unsigned int i;
int old_quiet, use_quiet;
unsigned int i;
int old_quiet, use_quiet;
- prules = buildargv (args);
- if (prules == NULL)
- {
-
error (_("unable to parse arguments")
);
- }
+ if (args == NULL)
+ error_no_arg (_("interpreter-exec command"));
+
+
prules = gdb_buildargv (args
);
+ make_cleanup_freeargv (prules);
nrules = 0;
nrules = 0;
- if (prules != NULL)
- {
- for (trule = prules; *trule != NULL; trule++)
- {
- nrules++;
- }
- }
+ for (trule = prules; *trule != NULL; trule++)
+ nrules++;
if (nrules < 2)
error (_("usage: interpreter-exec <interpreter> [ <command> ... ]"));
if (nrules < 2)
error (_("usage: interpreter-exec <interpreter> [ <command> ... ]"));
This page took
0.024681 seconds
and
4
git commands to generate.