aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python.h')
-rw-r--r--gdb/python/python.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/python/python.h b/gdb/python/python.h
index 4b150c3..2be83ba 100644
--- a/gdb/python/python.h
+++ b/gdb/python/python.h
@@ -28,4 +28,10 @@ extern const struct extension_language_defn extension_language_python;
/* Command element for the 'python' command. */
extern cmd_list_element *python_cmd_element;
+/* The "current" objfile. This is set when gdb detects that a new
+ objfile has been loaded. It is only set for the duration of a call to
+ gdbpy_source_objfile_script and gdbpy_execute_objfile_script; it is NULL
+ at other times. */
+extern struct objfile *gdbpy_current_objfile;
+
#endif /* PYTHON_PYTHON_H */