]> Git Repo - binutils.git/blobdiff - gdb/python/python.c
Change get_objfile_arch to a method on objfile
[binutils.git] / gdb / python / python.c
index d252646c02cfd4bde41582a7695402a8c7b49f5b..d65cca403bec4755baf51507211a0331c19c8e7f 100644 (file)
@@ -1389,7 +1389,7 @@ gdbpy_source_objfile_script (const struct extension_language_defn *extlang,
   if (!gdb_python_initialized)
     return;
 
-  gdbpy_enter enter_py (get_objfile_arch (objfile), current_language);
+  gdbpy_enter enter_py (objfile->arch (), current_language);
   gdbpy_current_objfile = objfile;
 
   python_run_simple_file (file, filename);
@@ -1411,7 +1411,7 @@ gdbpy_execute_objfile_script (const struct extension_language_defn *extlang,
   if (!gdb_python_initialized)
     return;
 
-  gdbpy_enter enter_py (get_objfile_arch (objfile), current_language);
+  gdbpy_enter enter_py (objfile->arch (), current_language);
   gdbpy_current_objfile = objfile;
 
   PyRun_SimpleString (script);
This page took 0.027735 seconds and 4 git commands to generate.