aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-membuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-membuf.c')
-rw-r--r--gdb/python/py-membuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/python/py-membuf.c b/gdb/python/py-membuf.c
index 348dfa3..d2a059a 100644
--- a/gdb/python/py-membuf.c
+++ b/gdb/python/py-membuf.c
@@ -73,11 +73,11 @@ mbpy_str (PyObject *self)
{
membuf_object *membuf_obj = (membuf_object *) self;
- return PyString_FromFormat (_("Memory buffer for address %s, \
+ return PyUnicode_FromFormat (_("Memory buffer for address %s, \
which is %s bytes long."),
- paddress (gdbpy_enter::get_gdbarch (),
- membuf_obj->addr),
- pulongest (membuf_obj->length));
+ paddress (gdbpy_enter::get_gdbarch (),
+ membuf_obj->addr),
+ pulongest (membuf_obj->length));
}
static int