aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmds.h
diff options
context:
space:
mode:
authorJan Vrany <jan.vrany@labware.com>2021-11-08 14:00:13 +0000
committerAndrew Burgess <aburgess@redhat.com>2021-12-14 11:41:42 +0000
commit788ec57f0a43261ced1f63dda68c224824d1f16d (patch)
treecf5fde90ecba484fe983d3ff1ca14b32e29d1c65 /gdb/mi/mi-cmds.h
parent1f6c8c3317e5692e9994c18f427b45093863d572 (diff)
downloadgdb-788ec57f0a43261ced1f63dda68c224824d1f16d.zip
gdb-788ec57f0a43261ced1f63dda68c224824d1f16d.tar.gz
gdb-788ec57f0a43261ced1f63dda68c224824d1f16d.tar.bz2
gdb/mi: rename mi_cmd to mi_command
Just give this class a new name, more inline with the name of the sub-classes. I've also updated mi_cmd_up to mi_command_up in mi-cmds.c inline with this new naming scheme. There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/mi/mi-cmds.h')
-rw-r--r--gdb/mi/mi-cmds.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mi/mi-cmds.h b/gdb/mi/mi-cmds.h
index d405f87..5945f03 100644
--- a/gdb/mi/mi-cmds.h
+++ b/gdb/mi/mi-cmds.h
@@ -141,17 +141,17 @@ extern mi_cmd_argv_ftype mi_cmd_complete;
/* The abstract base class for all MI command types. */
-struct mi_cmd
+struct mi_command
{
/* Constructor. NAME is the name of this MI command, excluding any
leading dash, that is the initial string the user will enter to run
this command. The SUPPRESS_NOTIFICATION pointer is a flag which will
be set to 1 when this command is invoked, and reset to its previous
value once the command invocation has completed. */
- mi_cmd (const char *name, int *suppress_notification);
+ mi_command (const char *name, int *suppress_notification);
/* Destructor. */
- virtual ~mi_cmd () = default;
+ virtual ~mi_command () = default;
/* Return the name of this command. This is the command that the user
will actually type in, without any arguments, and without the leading
@@ -190,7 +190,7 @@ private:
/* Lookup a command in the MI command table, returns nullptr if COMMAND is
not found. */
-extern mi_cmd *mi_cmd_lookup (const char *command);
+extern mi_command *mi_cmd_lookup (const char *command);
/* Debug flag */
extern int mi_debug_p;