This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug python/11060] New: the template_argument function cannot handle value arguments


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.


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