diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 96bb5f5..4f97416 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -46,6 +46,8 @@ static PyMethodDef GdbMethods[]; PyObject *gdb_module; +PyObject *gdbpy_doc_cst; + /* Given a command_line, return a command string suitable for passing to Python. Lines in the string are separated by newlines. The return value is allocated using xmalloc and the caller is @@ -407,9 +409,12 @@ Enables or disables printing of Python stack traces."), PyModule_AddStringConstant (gdb_module, "TARGET_CONFIG", (char*) target_name); gdbpy_initialize_values (); + gdbpy_initialize_commands (); PyRun_SimpleString ("import gdb"); + gdbpy_doc_cst = PyString_FromString ("__doc__"); + /* Create a couple objects which are used for Python's stdout and stderr. */ PyRun_SimpleString ("\ |