aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-lazy-string.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-17 21:23:25 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-17 21:23:25 +0000
commitd59b6f6c38a3e9c229dae40bd6c668be47fe8e48 (patch)
treed3e248c0abb4d8baf265767d9542537bd1b0d373 /gdb/python/py-lazy-string.c
parent102040f0d08b06980adf402c17b2f039fee7d23c (diff)
downloadgdb-d59b6f6c38a3e9c229dae40bd6c668be47fe8e48.zip
gdb-d59b6f6c38a3e9c229dae40bd6c668be47fe8e48.tar.gz
gdb-d59b6f6c38a3e9c229dae40bd6c668be47fe8e48.tar.bz2
2010-05-17 Michael Snyder <msnyder@vmware.com>
* python/py-auto-load.c: White space. * python/py-block.c: White space. * python/py-breakpoint.c: White space. * python/py-cmd.c: White space. * python/py-function.c: White space. * python/py-lazy-string.c: White space. * python/py-objfile.c: White space. * python/py-param.c: White space. * python/py-prettyprint.c: White space. * python/py-progspace.c: White space. * python/py-symtab.c: White space. * python/python.c: White space. * python/py-type.c: White space. * python/py-utils.c: White space. * python/py-value.c: White space.
Diffstat (limited to 'gdb/python/py-lazy-string.c')
-rw-r--r--gdb/python/py-lazy-string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c
index d28aae2..23cf13a 100644
--- a/gdb/python/py-lazy-string.c
+++ b/gdb/python/py-lazy-string.c
@@ -52,6 +52,7 @@ static PyObject *
stpy_get_address (PyObject *self, void *closure)
{
lazy_string_object *self_string = (lazy_string_object *) self;
+
return PyLong_FromUnsignedLongLong (self_string->address);
}
@@ -78,6 +79,7 @@ static PyObject *
stpy_get_length (PyObject *self, void *closure)
{
lazy_string_object *self_string = (lazy_string_object *) self;
+
return PyLong_FromLong (self_string->length);
}
@@ -85,6 +87,7 @@ PyObject *
stpy_get_type (PyObject *self, void *closure)
{
lazy_string_object *str_obj = (lazy_string_object *) self;
+
return type_to_type_object (str_obj->type);
}
@@ -109,6 +112,7 @@ static void
stpy_dealloc (PyObject *self)
{
lazy_string_object *self_string = (lazy_string_object *) self;
+
xfree (self_string->encoding);
}