diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:29:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-20 20:29:44 +0000 |
commit | 0646da15da19313ef79611081904ce5e723b0646 (patch) | |
tree | 02c510f44c5af574f09f21e8ea3e0eb5f18bf4dc /gdb/python/python-internal.h | |
parent | 999633ede794b0241c4fde66903f341890037200 (diff) | |
download | fsf-binutils-gdb-0646da15da19313ef79611081904ce5e723b0646.zip fsf-binutils-gdb-0646da15da19313ef79611081904ce5e723b0646.tar.gz fsf-binutils-gdb-0646da15da19313ef79611081904ce5e723b0646.tar.bz2 |
* mi/mi-main.c: Include python-internal.h.
(mi_cmd_list_features): Check gdb_python_initialized.
* python/py-inferior.c (python_on_normal_stop, python_on_resume)
(python_inferior_exit, python_new_objfile, add_thread_object)
(delete_thread_object, py_free_inferior): Check
gdb_python_initialized.
* python/py-prettyprint.c (apply_val_pretty_printer): Check
gdb_python_initialized.
* python/py-type.c (save_objfile_types): Check
gdb_python_initialized.
* python/python-internal.h (gdb_python_initialized): Declare.
* python/python.c (ensure_python_env): Throw exception if
Python not initialized.
(before_prompt_hook, source_python_script_for_objfile)
(start_type_printers, apply_type_printers,
free_type_printers): Check gdb_python_initialized.
* varobj.c (varobj_get_display_hint)
(dynamic_varobj_has_child_method, update_dynamic_varobj_children)
(install_new_value_visualizer, varobj_set_visualizer)
(value_get_print_value): Check gdb_python_initialized.
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r-- | gdb/python/python-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 695bcd3..f434b66 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -189,6 +189,8 @@ struct program_space; struct bpstats; struct inferior; +extern int gdb_python_initialized; + extern PyObject *gdb_module; extern PyObject *gdb_python_module; extern PyTypeObject value_object_type |