diff options
Diffstat (limited to 'gdb/python/py-objfile.c')
-rw-r--r-- | gdb/python/py-objfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index 8c56879..3e3270e 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -510,10 +510,10 @@ objfpy_repr (PyObject *self_) objfile *obj = self->objfile; if (obj == nullptr) - return PyString_FromString ("<gdb.Objfile (invalid)>"); + return PyUnicode_FromString ("<gdb.Objfile (invalid)>"); - return PyString_FromFormat ("<gdb.Objfile filename=%s>", - objfile_name (obj)); + return PyUnicode_FromFormat ("<gdb.Objfile filename=%s>", + objfile_name (obj)); } /* Subroutine of gdbpy_lookup_objfile_by_build_id to simplify it. |