From 751e7549b07aef34e4657e8e9cb86ec9ae4656b1 Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Wed, 2 Oct 2013 08:44:03 +0000 Subject: 2013-10-02 Phil Muldoon PR python/15579 * python/python.c: Document gdb.execute command in Python help. --- gdb/python/python.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/python/python.c') 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" }, -- cgit v1.1