aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-02-28 19:38:34 +0000
committerTom Tromey <tromey@redhat.com>2011-02-28 19:38:34 +0000
commitfb6a3ed3936ceb4a40d9a3b8ee53ebc561e50431 (patch)
tree4123479677d9645a667ab778ceb3aa92727ffb95 /gdb/python/python.c
parent9bb4c1bb7e2b5808fad979167f84f6dd1db0f000 (diff)
downloadbinutils-fb6a3ed3936ceb4a40d9a3b8ee53ebc561e50431.zip
binutils-fb6a3ed3936ceb4a40d9a3b8ee53ebc561e50431.tar.gz
binutils-fb6a3ed3936ceb4a40d9a3b8ee53ebc561e50431.tar.bz2
* python/python.c (gdbpy_value_cst): New global.
(_initialize_python): Initialize it. * python/python-internal.h (gdbpy_value_cst): Declare. * python/py-value.c (convert_value_from_python): Use gdbpy_value_cst.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 2977a56..3b10d8c 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -62,6 +62,7 @@ PyObject *gdbpy_children_cst;
PyObject *gdbpy_display_hint_cst;
PyObject *gdbpy_doc_cst;
PyObject *gdbpy_enabled_cst;
+PyObject *gdbpy_value_cst;
/* The GdbError exception. */
PyObject *gdbpy_gdberror_exc;
@@ -1015,6 +1016,7 @@ Enables or disables printing of Python stack traces."),
gdbpy_display_hint_cst = PyString_FromString ("display_hint");
gdbpy_doc_cst = PyString_FromString ("__doc__");
gdbpy_enabled_cst = PyString_FromString ("enabled");
+ gdbpy_value_cst = PyString_FromString ("value");
/* Release the GIL while gdb runs. */
PyThreadState_Swap (NULL);