GDB: Fix the overflow in addr/line_is_displayed()
[deliverable/binutils-gdb.git] / gdb / auto-load.h
CommitLineData
e2207b9a
JK
1/* GDB routines for supporting auto-loaded scripts.
2
b811d2c2 3 Copyright (C) 2012-2020 Free Software Foundation, Inc.
e2207b9a
JK
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20#ifndef AUTO_LOAD_H
21#define AUTO_LOAD_H 1
22
6dddc817 23struct objfile;
e2207b9a 24struct program_space;
6dddc817
DE
25struct auto_load_pspace_info;
26struct extension_language_defn;
bf88dd68 27
491144b5 28extern bool global_auto_load;
bf88dd68 29
491144b5 30extern bool auto_load_local_gdbinit;
bf88dd68 31extern char *auto_load_local_gdbinit_pathname;
491144b5 32extern bool auto_load_local_gdbinit_loaded;
e2207b9a
JK
33
34extern struct auto_load_pspace_info *
35 get_auto_load_pspace_data_for_loading (struct program_space *pspace);
6dddc817
DE
36extern void auto_load_objfile_script (struct objfile *objfile,
37 const struct extension_language_defn *);
bf88dd68 38extern void load_auto_scripts_for_objfile (struct objfile *objfile);
bf88dd68 39extern char auto_load_info_scripts_pattern_nl[];
1d12d88f 40extern void auto_load_info_scripts (const char *pattern, int from_tty,
6dddc817 41 const struct extension_language_defn *);
bf88dd68
JK
42
43extern struct cmd_list_element **auto_load_set_cmdlist_get (void);
44extern struct cmd_list_element **auto_load_show_cmdlist_get (void);
45extern struct cmd_list_element **auto_load_info_cmdlist_get (void);
e2207b9a 46
4dc84fd1 47extern int file_is_auto_load_safe (const char *filename,
77b64a49
PA
48 const char *debug_fmt, ...)
49 ATTRIBUTE_PRINTF (2, 3);
bccbefd2 50
6dddc817
DE
51extern int auto_load_gdb_scripts_enabled
52 (const struct extension_language_defn *extlang);
53
e2207b9a 54#endif /* AUTO_LOAD_H */
This page took 0.491095 seconds and 4 git commands to generate.