+2009-05-28 Tom Tromey <tromey@redhat.com>
+
+ * python/python.c (gdbpy_parameter): Rename. Fix error message.
+ (GdbMethods): Change "get_parameter" to "parameter".
+
2009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
Paul Pluzhnikov <ppluzhnikov@google.com>
+2009-05-28 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Basic Python): Change get_parameter to parameter.
+
2009-05-27 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (GDB/MI Miscellaneous Commands): Document "python"
It must be a boolean value. If omitted, it defaults to @code{False}.
@end defun
-@findex gdb.get_parameter
-@defun get_parameter parameter
+@findex gdb.parameter
+@defun parameter parameter
Return the value of a @value{GDBN} parameter. @var{parameter} is a
string naming the parameter to look up; @var{parameter} may contain
spaces if the parameter has a multi-part name. For example,
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;
"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);
}
"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,