X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Flanguage.h;h=57f0adb3d608a32bc948c71e79843774e757cb69;hb=8e25bafe932b090850854321b816685b2462c17e;hp=0880ced3bcde8fa0399baca52155fe501c424d7b;hpb=4009ee92c4ec3ee63f455c5abd761e26a819ef4a;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/language.h b/gdb/language.h index 0880ced3bc..57f0adb3d6 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -392,16 +392,6 @@ struct language_data /* Various operations on varobj. */ const struct lang_varobj_ops *la_varobj_ops; - /* If this language allows compilation from the gdb command line, - this method should be non-NULL. When called it should return - an instance of struct gcc_context appropriate to the language. - When defined this method must never return NULL; instead it - should throw an exception on failure. The returned compiler - instance is owned by its caller and must be deallocated by - calling its 'destroy' method. */ - - compile_instance *(*la_get_compile_instance) (void); - /* This method must be defined if 'la_get_gcc_context' is defined. If 'la_get_gcc_context' is not defined, then this method is ignored. @@ -511,6 +501,19 @@ struct language_defn : language_data return ::iterate_over_symbols (block, name, domain, callback); } + /* If this language allows compilation from the gdb command line, then + this method will return an instance of struct gcc_context appropriate + to the language. If compilation for this language is generally + supported, but something goes wrong then an exception is thrown. The + returned compiler instance is owned by its caller and must be + deallocated by the caller. If compilation is not supported for this + language then this method returns NULL. */ + + virtual compile_instance *get_compile_instance () const + { + return nullptr; + } + /* List of all known languages. */ static const struct language_defn *languages[nr_languages]; };