gdb/mi: use std::map for MI commands in mi-cmds.c
authorJan Vrany <jan.vrany@labware.com>
Tue, 23 Jun 2020 13:45:38 +0000 (14:45 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 14 Dec 2021 10:56:30 +0000 (10:56 +0000)
commitf76d800be844dd2aa4aa8f189a3ace16c5e931bc
tree4d57013d217a8cac2a84641735848821cb0fc420
parent3524a83e5950576a807134dde6c180211219e655
gdb/mi: use std::map for MI commands in mi-cmds.c

This changes the hashmap used in mi-cmds.c from a custom structure to
std::map.  Not only is replacing a custom container with a standard
one an improvement, but using std::map will make it easier to
dynamically add commands; which is something that is planned for a
later series, where we will allow MI commands to be implemented in
Python.

There should be no user visible changes after this commit.
gdb/mi/mi-cmds.c