gdb/cli/cli-script.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_SCRIPT_H)
  14. #define CLI_SCRIPT_H 1

  15. struct ui_file;
  16. struct command_line;
  17. struct cmd_list_element;

  18. /* Exported to cli/cli-cmds.c */

  19. extern void script_from_file (FILE *stream, const char *file);

  20. extern void show_user_1 (struct cmd_list_element *c,
  21.                          const char *prefix,
  22.                          const char *name,
  23.                          struct ui_file *stream);

  24. /* Exported to gdb/breakpoint.c */

  25. extern enum command_control_type
  26.         execute_control_command (struct command_line *cmd);

  27. extern enum command_control_type
  28.         execute_control_command_untraced (struct command_line *cmd);

  29. extern struct command_line *get_command_line (enum command_control_type,
  30.                                               char *);

  31. extern void print_command_lines (struct ui_out *,
  32.                                  struct command_line *, unsigned int);

  33. extern struct command_line * copy_command_lines (struct command_line *cmds);

  34. extern struct cleanup *
  35.   make_cleanup_free_command_lines (struct command_line **arg);

  36. /* Exported to gdb/infrun.c */

  37. extern void execute_user_command (struct cmd_list_element *c, char *args);

  38. /* Exported to top.c */

  39. extern void print_command_trace (const char *cmd);

  40. /* Exported to event-top.c */

  41. extern void reset_command_nest_depth (void);

  42. #endif /* !defined (CLI_SCRIPT_H) */