This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] fix in get_parameter
- From: Tom Tromey <tromey at redhat dot com>
- To: Project Archer <archer at sourceware dot org>
- Date: Fri, 21 Nov 2008 16:19:11 -0700
- Subject: [python] fix in get_parameter
- Reply-to: Tom Tromey <tromey at redhat dot com>
This fixes a bug in gdb.get_parameter that I found while working on
the libstd++ printers.
This is a regression; it doesn't appear upstream.
Tom
2008-11-21 Tom Tromey <tromey@redhat.com>
* python/python.c (get_parameter): Use var_type, not type.
diff --git a/gdb/python/python.c b/gdb/python/python.c
index c4605c8..719d105 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -248,7 +248,7 @@ get_parameter (PyObject *self, PyObject *args)
if (! cmd->var)
return PyErr_Format (PyExc_RuntimeError, "`%s' is not a parameter", arg);
- return gdbpy_parameter_value (cmd->type, cmd->var);
+ return gdbpy_parameter_value (cmd->var_type, cmd->var);
}
/* A Python function which evaluates a string using the gdb CLI. */