From: Eli Zaretskii via Gdb-patches <gdb-patches@sourceware.org>
To: Marco Barisione <mbarisione@undo.io>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 4/4] gdb: Add support for renaming commands
Date: Fri, 08 Jan 2021 12:30:47 +0200 [thread overview]
Message-ID: <83ft3bk9ew.fsf@gnu.org> (raw)
In-Reply-To: <20210108100706.96190-5-mbarisione@undo.io> (message from Marco Barisione via Gdb-patches on Fri, 8 Jan 2021 10:07:06 +0000)
> Date: Fri, 8 Jan 2021 10:07:06 +0000
> From: Marco Barisione via Gdb-patches <gdb-patches@sourceware.org>
>
> gdb/ChangeLog:
>
> * NEWS: Add items for the new rename command, the new
> -rename-existing-to option for define and the new
> rename_existing_to argument for gdb.Command.__init__.
> * cli/cli-decode.c (delete_cmd): Rename to disconnect_cmd.
> (disconnect_cmd): Disconnect a command from other commands and
> lists rather than deleting the command.
> (delete_cmd_by_name): Add.
> (update_prefix_links): Add.
> (update_cmd): Add.
> (do_add_cmd): Add ability to rename existing commands rather
> than redefining them.
> (add_cmd): Ditto.
> (add_prefix_cmd): Ditto.
> (add_alias_cmd): Update to use disconnect_cmd.
> (break_cmd_relationships): Add.
> (rename_hook): Add.
> (user_defined_command): Move from cli/cli-script.c.
> (rename_cmd): Add.
> * cli/cli-decode.h (struct cmd_list_element): Call the destroyer
> function from the destructor and always free the prefixname.
> * cli/cli-script.c (do_define_command): Add ability to rename
> existing commands rather than redefining them.
> (user_defined_command): Move to cli/cli-decode.c
> (check_command_redefinition): Add.
> (enum cmd_hook_type): Move from do_define_command to the global
> scope.
> (get_hook_type): Add.
> (HOOK_STRING): Make a variable in get_hook_type.
> (HOOK_LEN): Ditto.
> (HOOK_POST_STRING): Ditto.
> (HOOK_POST_LEN): Ditto.
> (struct define_cmd_opts): Add.
> (make_define_cmd_options_def_group): Add.
> (define_command): Add -rename-existing-to option.
> (do_rename_command): Add.
> (rename_command): Add.
> (_initialize_cli_script): Add option parsing for the define
> command and add the rename command.
> * command.h (add_cmd): Add ability to rename existing commands
> rather than redefining them.
> (add_prefix_cmd): Ditto.
> (rename_cmd): Add.
> (user_defined_command): Add declaration of previously static
> function.
> * python/py-cmd.c (cmdpy_init): Add rename_existing_to argument.
>
> gdb/doc/ChangeLog:
>
> * gdb.texinfo: Document the new rename command and the new
> -rename-existing-to option for define.
> * python.texi: Document the new rename_existing_to argument for
> gdb.Command.__init__.
>
> gdb/testsuite/ChangeLog:
>
> * gdb.base/command-renaming.exp: New test.
> * gdb.python/py-rename-existing.exp: New test.
> * gdb.python/py-rename-existing.py: New test.
Thanks, the documentation parts are OK.
next prev parent reply other threads:[~2021-01-08 10:30 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 10:07 [PATCH 0/4] Add support for command renaming Marco Barisione via Gdb-patches
2021-01-08 10:07 ` [PATCH 1/4] gdb: add lookup_cmd_exact to simplify a common pattern Marco Barisione via Gdb-patches
2021-01-10 0:06 ` Lancelot SIX via Gdb-patches
2021-01-17 10:47 ` Marco Barisione via Gdb-patches
2021-01-17 19:02 ` Lancelot SIX via Gdb-patches
2021-01-25 11:33 ` Luis Machado via Gdb-patches
2021-01-08 10:07 ` [PATCH 2/4] gdb: prevent prefix commands from being hooks Marco Barisione via Gdb-patches
2021-01-08 10:07 ` [PATCH 3/4] gdb: update the docs for add_cmd and do_add_cmd to match reality Marco Barisione via Gdb-patches
2021-01-08 10:07 ` [PATCH 4/4] gdb: Add support for renaming commands Marco Barisione via Gdb-patches
2021-01-08 10:30 ` Eli Zaretskii via Gdb-patches [this message]
2021-01-25 11:26 ` [PATCH v2 0/5] Add support for command renaming Marco Barisione via Gdb-patches
2021-01-25 11:26 ` [PATCH v2 1/5] gdb: add lookup_cmd_exact to simplify a common pattern Marco Barisione via Gdb-patches
2021-03-08 18:58 ` Simon Marchi
2021-05-07 14:47 ` Marco Barisione via Gdb-patches
2021-01-25 11:26 ` [PATCH v2 2/5] gdb: prevent prefix commands from being hooks Marco Barisione via Gdb-patches
2021-03-08 21:32 ` Simon Marchi via Gdb-patches
2021-03-09 9:42 ` Marco Barisione via Gdb-patches
2021-03-16 3:17 ` Simon Marchi via Gdb-patches
2021-05-07 14:59 ` Marco Barisione via Gdb-patches
2021-05-07 19:30 ` Simon Marchi via Gdb-patches
2021-05-07 20:11 ` Marco Barisione via Gdb-patches
2021-05-14 20:38 ` [PATCH v3 " Marco Barisione via Gdb-patches
2021-01-25 11:26 ` [PATCH v2 3/5] gdb: update the docs for add_cmd and do_add_cmd to match reality Marco Barisione via Gdb-patches
2021-03-08 22:52 ` Simon Marchi via Gdb-patches
2021-03-08 23:10 ` Simon Marchi via Gdb-patches
2021-05-14 20:39 ` [PATCH v3 3/5] gdb: move declarations and docs for cli-decode.c to cli-decode.h Marco Barisione via Gdb-patches
2021-01-25 11:26 ` [PATCH v2 4/5] gdb: generate the prefix name for prefix commands on demand Marco Barisione via Gdb-patches
2021-03-08 23:25 ` Simon Marchi via Gdb-patches
2021-03-16 17:00 ` Simon Marchi via Gdb-patches
2021-05-12 11:10 ` Marco Barisione via Gdb-patches
2021-01-25 11:26 ` [PATCH v2 5/5] gdb: Add support for renaming commands Marco Barisione via Gdb-patches
2021-03-23 18:45 ` Simon Marchi via Gdb-patches
2021-05-14 20:41 ` [PATCH v3 5/5] gdb: add " Marco Barisione via Gdb-patches
2021-02-08 17:53 ` [PING] [PATCH v2 0/5] Add support for command renaming Marco Barisione via Gdb-patches
2021-02-15 8:27 ` [PING2] " Marco Barisione via Gdb-patches
2021-02-22 8:28 ` [PING 3] " Marco Barisione via Gdb-patches
2021-03-01 8:32 ` [PING 4] " Marco Barisione via Gdb-patches
2021-03-08 9:23 ` [PING 5] " Marco Barisione via Gdb-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83ft3bk9ew.fsf@gnu.org \
--to=gdb-patches@sourceware.org \
--cc=eliz@gnu.org \
--cc=mbarisione@undo.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox