X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fextension-priv.h;h=77f23e0f911df4edccf8724bf46a3a0114fbe91a;hb=61c4e60495146e1115cc9e8710c5abccdc821a9d;hp=8596e0a95f5216366547874edf4f6a7a33f9d9de;hpb=42331a1ea2a13ce15ec202c5f0fbef3e5171253c;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/extension-priv.h b/gdb/extension-priv.h index 8596e0a95f..77f23e0f91 100644 --- a/gdb/extension-priv.h +++ b/gdb/extension-priv.h @@ -1,7 +1,7 @@ /* Private implementation details of interface between gdb and its extension languages. - Copyright (C) 2014-2020 Free Software Foundation, Inc. + Copyright (C) 2014-2021 Free Software Foundation, Inc. This file is part of GDB. @@ -92,7 +92,7 @@ struct extension_language_script_ops /* Return non-zero if auto-loading scripts in this extension language is enabled. */ - int (*auto_load_enabled) (const struct extension_language_defn *); + bool (*auto_load_enabled) (const struct extension_language_defn *); }; /* The interface for making calls from GDB to an external extension @@ -109,10 +109,11 @@ struct extension_language_script_ops struct extension_language_ops { - /* Called at the end of gdb initialization to give the extension language - an opportunity to finish up. This is useful for things like adding - new commands where one has to wait until gdb itself is initialized. */ - void (*finish_initialization) (const struct extension_language_defn *); + /* Called after GDB has processed the early initialization settings + files. This is when the extension language should be initialized. By + the time this is called all of the earlier initialization functions + have already been called. */ + void (*initialize) (const struct extension_language_defn *); /* Return non-zero if the extension language successfully initialized. This method is required. */