aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2013-10-02 08:44:03 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2013-10-02 08:44:03 +0000
commit751e7549b07aef34e4657e8e9cb86ec9ae4656b1 (patch)
tree88beef0fc06260ecb6788b4fbe061a622ddce7bd
parent1efd76617bcb6001ca13b90d184ae11aa4f49ce3 (diff)
downloadgdb-751e7549b07aef34e4657e8e9cb86ec9ae4656b1.zip
gdb-751e7549b07aef34e4657e8e9cb86ec9ae4656b1.tar.gz
gdb-751e7549b07aef34e4657e8e9cb86ec9ae4656b1.tar.bz2
2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
PR python/15579 * python/python.c: Document gdb.execute command in Python help.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/python/python.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7f86c89..c399655 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
+ PR python/15579
+
+ * python/python.c: Document gdb.execute command in Python help.
+
+2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
+
* python/py-frame.c (frame_info_to_frame_object): Use
gdbpy_convert_exception. Clean up Python object on failure.
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 00092c7..542c2d1 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1825,7 +1825,10 @@ static PyMethodDef GdbMethods[] =
{ "history", gdbpy_history, METH_VARARGS,
"Get a value from history" },
{ "execute", (PyCFunction) execute_gdb_command, METH_VARARGS | METH_KEYWORDS,
- "Execute a gdb command" },
+ "execute (command [, from_tty] [, to_string]) -> [String]\n\
+Evaluate command, a string, as a gdb CLI command. Optionally returns\n\
+a Python String containing the output of the command if to_string is\n\
+set to True." },
{ "parameter", gdbpy_parameter, METH_VARARGS,
"Return a gdb parameter's value" },