diff options
author | Tom Tromey <tromey@redhat.com> | 2009-05-28 16:49:55 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-05-28 16:49:55 +0000 |
commit | 8f5008704e9f9e282da288b71fefb96e889ea961 (patch) | |
tree | 76ce956a5e660f12f4edc9abcbffb75ef6b90cdc | |
parent | 6bf0ce2beda67e4101c734c8911c2aa9a7924833 (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 4 | ||||
-rw-r--r-- | gdb/python/python.c | 6 |
4 files changed, 14 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5aba7e..f57cea2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 95c9e66..e29f63a 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -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" diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 971ed04..6f5fb9a 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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, 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, |