aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-registers.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-registers.c b/gdb/python/py-registers.c
index 6255dda..bbb322f 100644
--- a/gdb/python/py-registers.c
+++ b/gdb/python/py-registers.c
@@ -136,8 +136,7 @@ gdbpy_reggroup_to_string (PyObject *self)
reggroup_object *group = (reggroup_object *) self;
const reggroup *reggroup = group->reggroup;
- const char *name = reggroup_name (reggroup);
- return PyUnicode_FromString (name);
+ return PyUnicode_FromString (reggroup->name ());
}
/* Implement gdb.RegisterGroup.name (self) -> String.