[PATCH 06/40] remove erroneous return from setup_user_args
Tom Tromey
tromey@redhat.com
Thu May 9 18:49:00 GMT 2013
This fixes setup_user_args to drop a useless and confusing "return".
* cli/cli-script.c (setup_user_args): Don't return after error.
---
gdb/cli/cli-script.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 3b24799..43fd479 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -689,11 +689,8 @@ setup_user_args (char *p)
int bsquote = 0;
if (arg_count >= MAXUSERARGS)
- {
- error (_("user defined function may only have %d arguments."),
- MAXUSERARGS);
- return old_chain;
- }
+ error (_("user defined function may only have %d arguments."),
+ MAXUSERARGS);
/* Strip whitespace. */
while (*p == ' ' || *p == '\t')
--
1.8.1.4
More information about the Gdb-patches
mailing list