Pedro Alves writes: > Yeah. Close now. Only nits on the details. Guess I fixed all the things you pointed out. > cli_user_command_p (struct cmd_list_element *cmd) I implemented that as well. Thanks. Updated patch below. :) gdb/ 2014-08-20 Gabriel Krisman Bertazi * cli/cli-cmds.c (show_user): Use cli_user_command_p to decide whether we display the command on "show user". * cli/cli-script.c (show_user_1): Only verify cmdlines after printing command name. * cli/cli-decode.h (cli_user_command_p): Declare new function. * cli/cli-decode.c (cli_user_command_p): Create helper function to verify whether cmd_list_element is a user-defined command. gdb/testsuite/ 2014-08-20 Gabriel Krisman Bertazi * gdb.base/commands.exp: Add tests to verify user-defined commands with empty bodies. * gdb.python/py-cmd.exp: Test that we don't show user-defined python commands in `show user command`. * gdb.python/scm-cmd.exp: Test that we don't show user-defined scheme commands in `show user command`.