]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/cli/cli-decode.c
Fix PR gdb/17035: "show user" doesn't list user-defined commands that
[thirdparty/binutils-gdb.git] / gdb / cli / cli-decode.c
index 7bc51a1b4d11e18bd00cbaa5f5f820f3be914e36..79d56db3a33d08d9180a655e8f4af9bea84ea83a 100644 (file)
@@ -1894,3 +1894,10 @@ cmd_func (struct cmd_list_element *cmd, char *args, int from_tty)
   else
     error (_("Invalid command"));
 }
+
+int
+cli_user_command_p (struct cmd_list_element *cmd)
+{
+  return (cmd->class == class_user
+         && (cmd->func == do_cfunc || cmd->func == do_sfunc));
+}