gdb/cli/cli-cmds.h - gdb

Macros defined

Source code

  1. /* Header file for GDB CLI command implementation library.
  2.    Copyright (C) 2000-2015 Free Software Foundation, Inc.

  3.    This program is free software; you can redistribute it and/or modify
  4.    it under the terms of the GNU General Public License as published by
  5.    the Free Software Foundation; either version 3 of the License, or
  6.    (at your option) any later version.

  7.    This program is distributed in the hope that it will be useful,
  8.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.    GNU General Public License for more details.

  11.    You should have received a copy of the GNU General Public License
  12.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  13. #if !defined (CLI_CMDS_H)
  14. #define CLI_CMDS_H 1

  15. /* Chain containing all defined commands.  */

  16. extern struct cmd_list_element *cmdlist;

  17. /* Chain containing all defined info subcommands.  */

  18. extern struct cmd_list_element *infolist;

  19. /* Chain containing all defined enable subcommands.  */

  20. extern struct cmd_list_element *enablelist;

  21. /* Chain containing all defined disable subcommands.  */

  22. extern struct cmd_list_element *disablelist;

  23. /* Chain containing all defined delete subcommands.  */

  24. extern struct cmd_list_element *deletelist;

  25. /* Chain containing all defined detach subcommands.  */

  26. extern struct cmd_list_element *detachlist;

  27. /* Chain containing all defined kill subcommands.  */

  28. extern struct cmd_list_element *killlist;

  29. /* Chain containing all defined stop subcommands.  */

  30. extern struct cmd_list_element *stoplist;

  31. /* Chain containing all defined set subcommands */

  32. extern struct cmd_list_element *setlist;

  33. /* Chain containing all defined unset subcommands */

  34. extern struct cmd_list_element *unsetlist;

  35. /* Chain containing all defined show subcommands.  */

  36. extern struct cmd_list_element *showlist;

  37. /* Chain containing all defined \"set history\".  */

  38. extern struct cmd_list_element *sethistlist;

  39. /* Chain containing all defined \"show history\".  */

  40. extern struct cmd_list_element *showhistlist;

  41. /* Chain containing all defined \"unset history\".  */

  42. extern struct cmd_list_element *unsethistlist;

  43. /* Chain containing all defined maintenance subcommands.  */

  44. extern struct cmd_list_element *maintenancelist;

  45. /* Chain containing all defined "maintenance info" subcommands.  */

  46. extern struct cmd_list_element *maintenanceinfolist;

  47. /* Chain containing all defined "maintenance print" subcommands.  */

  48. extern struct cmd_list_element *maintenanceprintlist;

  49. extern struct cmd_list_element *setprintlist;

  50. extern struct cmd_list_element *showprintlist;

  51. extern struct cmd_list_element *setdebuglist;

  52. extern struct cmd_list_element *showdebuglist;

  53. extern struct cmd_list_element *setchecklist;

  54. extern struct cmd_list_element *showchecklist;

  55. /* Exported to gdb/top.c */

  56. void init_cmd_lists (void);

  57. void init_cli_cmds (void);

  58. int is_complete_command (struct cmd_list_element *cmd);

  59. /* Exported to gdb/main.c */

  60. extern void cd_command (char *, int);

  61. /* Exported to gdb/top.c and gdb/main.c */

  62. extern void quit_command (char *, int);

  63. extern void source_script (const char *, int);

  64. /* Exported to objfiles.c.  */

  65. extern int find_and_open_script (const char *file, int search_path,
  66.                                  FILE **streamp, char **full_path);

  67. /* Command tracing state.  */

  68. extern int source_verbose;
  69. extern int trace_commands;

  70. #endif /* !defined (CLI_CMDS_H) */