diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-30 16:31:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-30 16:31:33 +0000 |
commit | b81b921f794dc3ce6112e784f39511004c7cb542 (patch) | |
tree | 9043a954f7c4d0e29330c5b9205f7488af9c18a9 /gdb | |
parent | fe48dfb1ce26560b351cc9fbaed38e69f4ba89db (diff) | |
download | gdb-b81b921f794dc3ce6112e784f39511004c7cb542.zip gdb-b81b921f794dc3ce6112e784f39511004c7cb542.tar.gz gdb-b81b921f794dc3ce6112e784f39511004c7cb542.tar.bz2 |
remove erroneous return from setup_user_args
This fixes setup_user_args to drop a useless and confusing "return".
* cli/cli-script.c (setup_user_args): Don't return after error.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/cli/cli-script.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2345ff8..eaa47a0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2013-05-30 Tom Tromey <tromey@redhat.com> + * cli/cli-script.c (setup_user_args): Don't return after error. + +2013-05-30 Tom Tromey <tromey@redhat.com> + * somread.c (som_symtab_read): Call do_cleanups. 2013-05-30 Tom Tromey <tromey@redhat.com> 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') |