gdb/auto-load.h - gdb

Macros defined

Source code

  1. /* GDB routines for supporting auto-loaded scripts.

  2.    Copyright (C) 2012-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 AUTO_LOAD_H
  15. #define AUTO_LOAD_H 1

  16. struct objfile;
  17. struct program_space;
  18. struct auto_load_pspace_info;
  19. struct extension_language_defn;

  20. extern int global_auto_load;

  21. extern int auto_load_local_gdbinit;
  22. extern char *auto_load_local_gdbinit_pathname;
  23. extern int auto_load_local_gdbinit_loaded;

  24. extern struct auto_load_pspace_info *
  25.   get_auto_load_pspace_data_for_loading (struct program_space *pspace);
  26. extern void auto_load_objfile_script (struct objfile *objfile,
  27.                                       const struct extension_language_defn *);
  28. extern void load_auto_scripts_for_objfile (struct objfile *objfile);
  29. extern char auto_load_info_scripts_pattern_nl[];
  30. extern void auto_load_info_scripts (char *pattern, int from_tty,
  31.                                     const struct extension_language_defn *);

  32. extern struct cmd_list_element **auto_load_set_cmdlist_get (void);
  33. extern struct cmd_list_element **auto_load_show_cmdlist_get (void);
  34. extern struct cmd_list_element **auto_load_info_cmdlist_get (void);

  35. extern int file_is_auto_load_safe (const char *filename,
  36.                                    const char *debug_fmt, ...);

  37. extern int auto_load_gdb_scripts_enabled
  38.   (const struct extension_language_defn *extlang);

  39. #endif /* AUTO_LOAD_H */