From 3524a83e5950576a807134dde6c180211219e655 Mon Sep 17 00:00:00 2001 From: Jan Vrany Date: Mon, 8 Nov 2021 10:46:07 +0000 Subject: gdb/mi: rename mi_lookup to mi_cmd_lookup Lets give this function a more descriptive name. I've also improved the comments in the header and source files. There should be no user visible changes after this commit. --- gdb/mi/mi-cmds.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/mi/mi-cmds.h') diff --git a/gdb/mi/mi-cmds.h b/gdb/mi/mi-cmds.h index 8da2e39..e92737b 100644 --- a/gdb/mi/mi-cmds.h +++ b/gdb/mi/mi-cmds.h @@ -164,9 +164,10 @@ struct mi_cmd int *suppress_notification; }; -/* Lookup a command in the MI command table. */ +/* Lookup a command in the MI command table, returns nullptr if COMMAND is + not found. */ -extern struct mi_cmd *mi_lookup (const char *command); +extern struct mi_cmd *mi_cmd_lookup (const char *command); /* Debug flag */ extern int mi_debug_p; -- cgit v1.1