[patch][python] Fix python/15579
Phil Muldoon
pmuldoon@redhat.com
Wed Sep 18 11:23:00 GMT 2013
This patch adds some help text to the Python gdb.execute command.
OK?
Cheers,
Phil
2013-09-18 Phil Muldoon <pmuldoon@redhat.com>
PR python/15579
* python/python.c: Document gdb.execute command in Python help.
--
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 00092c7..f7971bd 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1825,7 +1825,11 @@ 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" },
More information about the Gdb-patches
mailing list