diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-13 11:57:24 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-13 11:57:24 -0500 |
commit | db972fce46368f7d2a60e43aca78f0757515c0c8 (patch) | |
tree | d447ae34443d4a8d46728ff9c04ffe9ff124bcac /gdb/auto-load.h | |
parent | 5e12f48ffbf5eba4524fdbae341f091c7cd0cb72 (diff) | |
download | gdb-db972fce46368f7d2a60e43aca78f0757515c0c8.zip gdb-db972fce46368f7d2a60e43aca78f0757515c0c8.tar.gz gdb-db972fce46368f7d2a60e43aca78f0757515c0c8.tar.bz2 |
gdb: bool-ify ext_lang_auto_load_enabled and friends
Make it and related functions return bool. Move function comments to
header where applicable.
gdb/ChangeLog:
* auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
comment here.
* auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
comment to header.
* extension-priv.h (struct extension_language_script_ops)
<auto_load_enabled>: Return bool.
* extension.h (ext_lang_auto_load_enabled): Return bool, move
comment here.
* extension.c (ext_lang_auto_load_enabled): Return bool, move
comment to header.
* guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
move comment here.
* guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
move comment to header.
* python/python-header.h (gdbpy_auto_load_enabled): Return bool,
move comment here.
* python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
move comment to header.
Change-Id: I657a17d2dab77a36884a137ce9b23a2cc6d53140
Diffstat (limited to 'gdb/auto-load.h')
-rw-r--r-- | gdb/auto-load.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/auto-load.h b/gdb/auto-load.h index c644b46..ec80239 100644 --- a/gdb/auto-load.h +++ b/gdb/auto-load.h @@ -56,7 +56,9 @@ extern bool file_is_auto_load_safe (const char *filename, const char *debug_fmt, ...) ATTRIBUTE_PRINTF (2, 3); -extern int auto_load_gdb_scripts_enabled +/* Return true if auto-loading gdb scripts is enabled. */ + +extern bool auto_load_gdb_scripts_enabled (const struct extension_language_defn *extlang); #endif /* AUTO_LOAD_H */ |