* cli/cli-decode.c (cmd_cfunc_eq): New function.
[deliverable/binutils-gdb.git] / gdb / cli / cli-decode.c
index d64b2f642905e9d0838b39487354e353685e8e84..a13b7b8eecd6f890316a550fa48fd5fa94b654e3 100644 (file)
@@ -79,6 +79,13 @@ set_cmd_sfunc (struct cmd_list_element *cmd,
   cmd->function.sfunc = sfunc; /* Ok.  */
 }
 
+int
+cmd_cfunc_eq (struct cmd_list_element *cmd,
+             void (*cfunc) (char *args, int from_tty))
+{
+  return cmd->func == do_cfunc && cmd->function.cfunc == cfunc;
+}
+
 
 /* Add element named NAME.
    CLASS is the top level category into which commands are broken down
This page took 0.023164 seconds and 4 git commands to generate.