[RFA 03/10] Fix problem that alias can be defined or not depending on the order.
Tom Tromey
tom@tromey.com
Thu May 14 16:00:22 GMT 2020
>>>>> "Philippe" == Philippe Waroquiers via Gdb-patches <gdb-patches@sourceware.org> writes:
Philippe> gdb/ChangeLog
Philippe> YYYY-MM-DD Philippe Waroquiers <philippe.waroquiers@skynet.be>
Philippe> * cli/cli-cmds.c (alias_command): Check for an existing alias
Philippe> using lookup_cmd_composition, as valid_command_p is too strict
Philippe> and forbids aliases that are the prefix of an existing alias
Philippe> or command.
Philippe> * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
Philippe> command is properly recognised as a valid command.
Philippe> gdb/testsuite/ChangeLog
Philippe> YYYY-MM-DD Philippe Waroquiers <philippe.waroquiers@skynet.be>
Philippe> * gdb.base/alias.exp: Test aliases starting with a prefix of
Philippe> another alias.
Thank you for the patch. This looks good to me.
Tom
More information about the Gdb-patches
mailing list