diff options
Diffstat (limited to 'gdb/python/py-progspace.c')
-rw-r--r-- | gdb/python/py-progspace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index 98eeecc..910c6a3 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -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; |