22 dbg_cmd_print(
char *psz_args)
25 static char *psz_last_name = NULL;
27 if (!psz_args || 0==strlen(psz_args)) {
30 psz_name = psz_last_name;
32 printf(
"No current variable - must supply something to print\n");
40 if (psz_last_name) free(psz_last_name);
41 psz_last_name = strdup(psz_name);
48 dbg_cmd_print_init(
unsigned int c)
50 short_command[c].func = &dbg_cmd_print;
51 short_command[c].use =
_(
"print {VARIABLE [attrs...]}");
debug_return_t
Definition: trace.h:32
bool dbg_cmd_show_exp(char *psz_arg, bool expand)
#define _(msgid)
Definition: make.h:293
char * get_word(char **ppsz_str)