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.
This commit is contained in:
parent
6bf0ce2bed
commit
8f5008704e
4 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
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"
|
||||
|
|
|
@ -18554,8 +18554,8 @@ command as having originated from the user invoking it interactively.
|
|||
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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue