[RFC 1/8] Use std::map for MI commands in mi-cmds.c

Tom Tromey tom@tromey.com
Thu Apr 25 19:15:00 GMT 2019


>>>>> "Jan" == Jan Vrany <jan.vrany@fit.cvut.cz> writes:

Oh, I see now, sorry about that:

Jan> +  if (mi_cmd_table.find (name) != mi_cmd_table.end ())
Jan> +    return false;

This disallows redefining a command, so it seems fine to me.

Tom



More information about the Gdb-patches mailing list