gdb: bool-ify ext_lang_auto_load_enabled and friends
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 13 Jan 2021 16:57:24 +0000 (11:57 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 13 Jan 2021 16:57:24 +0000 (11:57 -0500)
commitdb972fce46368f7d2a60e43aca78f0757515c0c8
treed447ae34443d4a8d46728ff9c04ffe9ff124bcac
parent5e12f48ffbf5eba4524fdbae341f091c7cd0cb72
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
gdb/ChangeLog
gdb/auto-load.c
gdb/auto-load.h
gdb/extension-priv.h
gdb/extension.c
gdb/extension.h
gdb/guile/guile-internal.h
gdb/guile/scm-auto-load.c
gdb/python/py-auto-load.c
gdb/python/python-internal.h