Code cleanup: Add objfile_name accessor
[deliverable/binutils-gdb.git] / gdb / python / py-objfile.c
index a954c9d2923d22599a7cd49d08bc7ac9bd67559a..9bbd4c22183f69dbe46849b7c927e90e65167b97 100644 (file)
@@ -53,7 +53,8 @@ objfpy_get_filename (PyObject *self, void *closure)
   objfile_object *obj = (objfile_object *) self;
 
   if (obj->objfile)
-    return PyString_Decode (obj->objfile->name, strlen (obj->objfile->name),
+    return PyString_Decode (objfile_name (obj->objfile),
+                           strlen (objfile_name (obj->objfile)),
                            host_charset (), NULL);
   Py_RETURN_NONE;
 }
This page took 0.02692 seconds and 4 git commands to generate.