/* Header file for GDB command decoding library.
- Copyright (C) 2000-2019 Free Software Foundation, Inc.
+ Copyright (C) 2000-2020 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
deprecated_warn_user (0),
malloced_replacement (0),
doc_allocated (0),
+ name_allocated (0),
hook_in (0),
allow_unknown (0),
abbrev_flag (0),
{
if (doc && doc_allocated)
xfree ((char *) doc);
+ if (name_allocated)
+ xfree ((char *) name);
}
DISABLE_COPY_AND_ASSIGN (cmd_list_element);
unsigned int doc_allocated : 1;
+ /* Set if the name field should be xfree'd. */
+
+ unsigned int name_allocated : 1;
+
/* Flag that specifies if this command is already running its hook. */
/* Prevents the possibility of hook recursion. */
unsigned int hook_in : 1;
int *suppress_notification = nullptr;
};
-extern void help_cmd_list (struct cmd_list_element *, enum command_class,
- const char *, int, struct ui_file *);
-
/* Functions that implement commands about CLI commands. */
extern void help_cmd (const char *, struct ui_file *);