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
This commit is contained in:
parent
5e12f48ffb
commit
db972fce46
10 changed files with 46 additions and 17 deletions
|
@ -379,7 +379,10 @@ extern struct cmd_list_element *show_python_list;
|
|||
|
||||
/* extension_language_script_ops "methods". */
|
||||
|
||||
extern int gdbpy_auto_load_enabled (const struct extension_language_defn *);
|
||||
/* Return true if auto-loading Python scripts is enabled.
|
||||
This is the extension_language_script_ops.auto_load_enabled "method". */
|
||||
|
||||
extern bool gdbpy_auto_load_enabled (const struct extension_language_defn *);
|
||||
|
||||
/* extension_language_ops "methods". */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue