]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/python.c
gdb: remove target_gdbarch
[thirdparty/binutils-gdb.git] / gdb / python / python.c
index e56d2463d597f114f3c53dfe50bfbf1cec2a4338..d3dea088c3b81585bf3664cc89404a4b1fd761a8 100644 (file)
@@ -254,7 +254,7 @@ gdbpy_enter::get_gdbarch ()
 void
 gdbpy_enter::finalize ()
 {
-  python_gdbarch = target_gdbarch ();
+  python_gdbarch = current_inferior ()->arch ();
 }
 
 /* A helper class to save and restore the GIL, but without touching