diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-auto-load.c | 5 | ||||
-rw-r--r-- | gdb/python/python-internal.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index 1879346d..3b279312 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -40,10 +40,9 @@ show_auto_load_python_scripts (struct ui_file *file, int from_tty, fprintf_filtered (file, _("Auto-loading of Python scripts is %s.\n"), value); } -/* Return non-zero if auto-loading Python scripts is enabled. - This is the extension_language_script_ops.auto_load_enabled "method". */ +/* See python-internal.h. */ -int +bool gdbpy_auto_load_enabled (const struct extension_language_defn *extlang) { return auto_load_python_scripts; diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index e1b62f6..56702ca 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -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". */ |