aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-05-28 16:49:55 +0000
committerTom Tromey <tromey@redhat.com>2009-05-28 16:49:55 +0000
commit8f5008704e9f9e282da288b71fefb96e889ea961 (patch)
tree76ce956a5e660f12f4edc9abcbffb75ef6b90cdc /gdb/python/python.c
parent6bf0ce2beda67e4101c734c8911c2aa9a7924833 (diff)
downloadgdb-8f5008704e9f9e282da288b71fefb96e889ea961.zip
gdb-8f5008704e9f9e282da288b71fefb96e889ea961.tar.gz
gdb-8f5008704e9f9e282da288b71fefb96e889ea961.tar.bz2
gdb
* python/python.c (gdbpy_parameter): Rename. Fix error message. (GdbMethods): Change "get_parameter" to "parameter". gdb/doc * gdb.texinfo (Basic Python): Change get_parameter to parameter.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 7f32d66..3ad69d4 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -212,7 +212,7 @@ parameter_to_python (struct cmd_list_element *cmd)
value. */
static PyObject *
-get_parameter (PyObject *self, PyObject *args)
+gdbpy_parameter (PyObject *self, PyObject *args)
{
struct cmd_list_element *alias, *prefix, *cmd;
char *arg, *newarg;
@@ -235,7 +235,7 @@ get_parameter (PyObject *self, PyObject *args)
"could not find parameter `%s'", arg);
if (! cmd->var)
- return PyErr_Format (PyExc_RuntimeError, "`%s' is not a variable", arg);
+ return PyErr_Format (PyExc_RuntimeError, "`%s' is not a parameter", arg);
return parameter_to_python (cmd);
}
@@ -612,7 +612,7 @@ static PyMethodDef GdbMethods[] =
"Get a value from history" },
{ "execute", execute_gdb_command, METH_VARARGS,
"Execute a gdb command" },
- { "get_parameter", get_parameter, METH_VARARGS,
+ { "parameter", gdbpy_parameter, METH_VARARGS,
"Return a gdb parameter's value" },
{ "default_visualizer", gdbpy_default_visualizer, METH_VARARGS,