This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[python] fix in get_parameter


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]