diff options
author | Tom Tromey <tromey@redhat.com> | 2012-02-07 19:47:16 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-02-07 19:47:16 +0000 |
commit | f0823d2ce8e4cb8b64176872a372d8147804fb10 (patch) | |
tree | fb7552f824929309c2b65a6b54b656e90066885a /gdb/python/py-frame.c | |
parent | 64e7d9dddc00228cdbcecdd4c053cf83cf6608b7 (diff) | |
download | binutils-f0823d2ce8e4cb8b64176872a372d8147804fb10.zip binutils-f0823d2ce8e4cb8b64176872a372d8147804fb10.tar.gz binutils-f0823d2ce8e4cb8b64176872a372d8147804fb10.tar.bz2 |
PR python/12027:
* python/python-internal.h (frame_object_type): Declare.
* python/py-symbol.c (sympy_needs_frame): New function.
(sympy_value): New function.
(symbol_object_getset): Add "needs_frame".
(symbol_object_methods): Add "value".
* python/py-frame.c (frame_object_type): No longer static.
gdb/doc
* gdb.texinfo (Symbols In Python): Document Symbol.needs_frame and
Symbol.value.
gdb/testsuite
* gdb.python/py-symbol.exp: Test Symbol.needs_frame and
Symbol.value.
* gdb.python/py-symbol.c (qq): Set default value.
Diffstat (limited to 'gdb/python/py-frame.c')
-rw-r--r-- | gdb/python/py-frame.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index 12cedc3..12a54e8 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -54,8 +54,6 @@ typedef struct { error (_("Frame is invalid.")); \ } while (0) -static PyTypeObject frame_object_type; - /* Returns the frame_info object corresponding to the given Python Frame object. If the frame doesn't exist anymore (the frame id doesn't correspond to any frame in the inferior), returns NULL. */ @@ -663,7 +661,7 @@ Return the value of the variable in this frame." }, {NULL} /* Sentinel */ }; -static PyTypeObject frame_object_type = { +PyTypeObject frame_object_type = { PyObject_HEAD_INIT (NULL) 0, /* ob_size */ "gdb.Frame", /* tp_name */ |