gdb/top.h - gdb

Macros defined

Source code

  1. /* Top level stuff for GDB, the GNU debugger.

  2.    Copyright (C) 1986-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

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

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

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

  14. #ifndef TOP_H
  15. #define TOP_H

  16. /* From top.c.  */
  17. extern char *saved_command_line;
  18. extern int saved_command_line_size;
  19. extern FILE *instream;
  20. extern int in_user_command;
  21. extern int confirm;
  22. extern char gdb_dirbuf[1024];
  23. extern int inhibit_gdbinit;
  24. extern const char gdbinit[];

  25. extern void print_gdb_version (struct ui_file *);
  26. extern void print_gdb_configuration (struct ui_file *);

  27. extern void read_command_file (FILE *);
  28. extern void init_history (void);
  29. extern void command_loop (void);
  30. extern int quit_confirm (void);
  31. extern void quit_force (char *, int);
  32. extern void quit_command (char *, int);
  33. extern void quit_cover (void);
  34. extern void execute_command (char *, int);

  35. /* If the interpreter is in sync mode (we're running a user command's
  36.    list, running command hooks or similars), and we just ran a
  37.    synchronous command that started the target, wait for that command
  38.    to end.  WAS_SYNC indicates whether sync_execution was set before
  39.    the command was run.  */

  40. extern void maybe_wait_sync_command_done (int was_sync);

  41. extern void check_frame_language_change (void);

  42. /* Prepare for execution of a command.
  43.    Call this before every command, CLI or MI.
  44.    Returns a cleanup to be run after the command is completed.  */
  45. extern struct cleanup *prepare_execute_command (void);

  46. /* This function returns a pointer to the string that is used
  47.    by gdb for its command prompt.  */
  48. extern char *get_prompt (void);

  49. /* This function returns a pointer to the string that is used
  50.    by gdb for its command prompt.  */
  51. extern void set_prompt (const char *s);

  52. /* From random places.  */
  53. extern int readnow_symbol_files;

  54. /* Perform _initialize initialization.  */
  55. extern void gdb_init (char *);

  56. /* For use by event-top.c.  */
  57. /* Variables from top.c.  */
  58. extern int source_line_number;
  59. extern const char *source_file_name;
  60. extern int history_expansion_p;
  61. extern int server_command;
  62. extern char *lim_at_start;

  63. extern void show_commands (char *args, int from_tty);

  64. extern void set_history (char *, int);

  65. extern void show_history (char *, int);

  66. extern void set_verbose (char *, int, struct cmd_list_element *);

  67. extern void do_restore_instream_cleanup (void *stream);

  68. #endif