22 #include "../subcmd.h" 26 "Show the command-line invocation",
31 "Show if we are to show short or long filenames",
34 {
"commands",
"Show the history of commands you typed.",
39 "Show the value of the GNU Make debug mask (set via `--debug` or `-d`)",
43 "Show the value of the GNU Make `--ignore-errors` (or `-i`) flag",
47 "Show the value of the GNU Make `--keep-going` (or `-k`) flag",
52 "Show the value of the GNU Make `--silent` (or `-s`) flag",
58 "Value of GNU Make `--trace` (or `-t`) flag",
64 "Show the remake version.\n" 66 "The first number part of the version is the GNU Make base version.\n" 67 "After that comes a remake-specific value which indicates its release iteration." 72 {
"warranty",
"Various kinds of warranty you do not have.",
76 { NULL, NULL, NULL, NULL,
83 if (!psz_arg || 0==strlen(psz_arg)) {
85 for (i=0; show_subcommands[i].
name; i++) {
86 if ( 0 == strcmp(show_subcommands[i].
name,
"warranty") ||
87 0 == strcmp(show_subcommands[i].name,
"history"))
90 &(show_subcommands[i]),
false);
98 printf(
"debug is 0x%x.\n", (
unsigned int)
db_level);
102 }
else if (
is_abbrev_of (psz_arg,
"ignore-errors", 3)) {
111 printf(
"warranty: ");
114 printf(
"Undefined command \"%s\". Try \"help show\"\n", psz_arg);
122 dbg_cmd_show_init(
unsigned int c)
125 short_command[c].use =
_(
"show [SUBCOMMAND]");
126 short_command[c].doc =
127 _(
"Show debugger information regarding SUBCOMMAND.\n" 128 "If no SUBCOMMAND is specified, give a list of \"show\" subcommands.");
const char * name
Definition: filedef.h:36
subcommand_var_info_t show_subcommands[]
Definition: show.h:24
const char * name
Definition: subcmd.h:5
const char * WARRANTY
Definition: command/info.h:32
bool is_abbrev_of(const char *psz_substr, const char *psz_word, unsigned int i_min)
debug_return_t
Definition: trace.h:32
#define _(msgid)
Definition: make.h:293
const char * var_to_on_off(int i_bool)
debug_return_t dbg_cmd_show_command(const char *psz_args)
int db_level
Definition: debug.h:163
void dbg_help_subcmd_entry(const char *psz_subcmd_name, const char *psz_fmt, subcommand_var_info_t *p_subcmd, bool full_info)
Definition: help.h:25
debug_return_t dbg_cmd_show(char *psz_arg)
Definition: show.h:81
void print_db_level(debug_level_mask_t e_debug_level)