Add a way to invoke redefined (overridden) GDB commands
Pedro Alves
pedro@palves.net
Tue Oct 20 15:15:32 GMT 2020
On 10/19/20 7:47 PM, Philippe Waroquiers wrote:
> On Mon, 2020-10-19 at 19:05 +0100, Pedro Alves wrote:
> For what concerns the rename, alias uses = to separate
> the 2 commands:
> (gdb) h alias
> Define a new command that is an alias of an existing command.
> Usage: alias [-a] [--] ALIAS = COMMAND [DEFAULT-ARGS...]
> ...
> So, maybe better/more consistent to use = similarly for rename.
In the "alias" case, the "=" makes sense since we're
setting up an equivalence.
With renaming, isn't "=" a little weird?
(gdb) rename oldname = newname
I guess I'd get used to it.
More information about the Gdb-patches
mailing list