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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 97f8506..cd50e50 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1280,7 +1280,7 @@ finalize_python (void *ignore)
clearer to make the needed calls explicitly here than to create a
cleanup and then mysteriously discard it. */
PyGILState_Ensure ();
- python_gdbarch = target_gdbarch;
+ python_gdbarch = target_gdbarch ();
python_language = current_language;
Py_Finalize ();