Code cleanup: Add objfile_name accessor
[deliverable/binutils-gdb.git] / gdb / python / py-progspace.c
index 98eeecc240f4ee925d980e2f39d3e7603cc3fd73..910c6a3fcb32a65c394f5a08d016fe328f3b8fc4 100644 (file)
@@ -60,7 +60,8 @@ pspy_get_filename (PyObject *self, void *closure)
       struct objfile *objfile = obj->pspace->symfile_object_file;
 
       if (objfile)
-       return PyString_Decode (objfile->name, strlen (objfile->name),
+       return PyString_Decode (objfile_name (objfile),
+                               strlen (objfile_name (objfile)),
                                host_charset (), NULL);
     }
   Py_RETURN_NONE;
This page took 0.025508 seconds and 4 git commands to generate.