Re: [PATCH v2 31/31] Support an "unlimited" number of user-defined arguments

Eli Zaretskii
2016-10-19T06:29:37Z

> From: Pedro Alves <palves@redhat.com>
> Date: Wed, 19 Oct 2016 02:12:19 +0100
>
> gdb/ChangeLog:
> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>
> * NEWS: Mention that user commands now accept an unlimited number
> of arguments.
> * cli/cli-script.c: Include <vector>.
> (struct string_view): New type.
> (MAXUSERARGS): Delete.
> (struct user_args): Now a C++ class.
> (user_args_stack): New.
> (struct scoped_user_args_level): New type.
> (execute_user_command): Use scoped_user_args_level. Adjust to
> call insert_user_args instead of insert_args.
> (arg_cleanup): Delete.
> (setup_user_args): Deleted, and refactored as ...
> (user_args::user_args): ... this new constructor. Limit of number
> of arguments removed.
> (insert_args): Delete.
> (insert_user_args) New.
> (user_args::insert_args): New, bits based on old insert_args with
> limit of number of arguments eliminated.
> * common/common-utils.h: Include <sstream>.
> (gdb::to_string): New.
>
> gdb/doc/ChangeLog:
> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>
> * gdb.texinfo (User-defined Commands): Limit on number of
> arguments passed to user-defined commands removed; update.

OK for the documentation parts.

Thanks.