aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 516e2c9..29f2010 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1583,11 +1583,8 @@ gdbpy_current_language (PyObject *unused1, PyObject *unused2)
-/* 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. */
-static struct objfile *gdbpy_current_objfile;
+/* See python.h. */
+struct objfile *gdbpy_current_objfile;
/* Set the current objfile to OBJFILE and then read FILE named FILENAME
as Python code. This does not throw any errors. If an exception