This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11060] New: the template_argument function cannot handle value arguments
- From: "bschindler at inf dot ethz dot ch" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 7 Dec 2009 14:24:42 -0000
- Subject: [Bug python/11060] New: the template_argument function cannot handle value arguments
- Reply-to: sourceware-bugzilla at sourceware dot org
having the type
Eigen::Matrix<double, 4, 1, 2, 4, 1>
Executing template_argument(1) on the type gdb object (when doing a pretty
printer), I get the following:
Traceback (most recent call last):
File "/home/bschindl/software/gdb-printer/eigen/printers.py", line 53, in
lookup_function
return pretty_printers_dict[function](val)
File "/home/bschindl/software/gdb-printer/eigen/printers.py", line 28, in
<lambda>
pretty_printers_dict[re.compile('^Eigen::Matrix<.*>$')] = lambda val:
EigenMatrixPrinter(val)
File "/home/bschindl/software/gdb-printer/eigen/printers.py", line 18, in
__init__
self.rows = self.type.template_argument(1)
RuntimeError: No type named 4.
--
Summary: the template_argument function cannot handle value
arguments
Product: gdb
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: bschindler at inf dot ethz dot ch
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11060
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.