gdb/cli/cli-setshow.h - gdb

Macros defined

Source code

  1. /* Header file for GDB CLI set and show commands implementation.
  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_SETSHOW_H)
  14. #define CLI_SETSHOW_H 1

  15. struct cmd_list_element;

  16. /* Parse ARG, an option to a boolean variable.
  17.    Returns 1 for true, 0 for false, and -1 if invalid.  */
  18. extern int parse_cli_boolean_value (const char *arg);

  19. extern void do_set_command (const char *arg, int from_tty,
  20.                             struct cmd_list_element *c);
  21. extern void do_show_command (const char *arg, int from_tty,
  22.                              struct cmd_list_element *c);

  23. extern void cmd_show_list (struct cmd_list_element *list, int from_tty,
  24.                            const char *prefix);

  25. #endif /* !defined (CLI_SETSHOW_H) */