public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "bschindler at inf dot ethz dot ch" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug python/11060] New: the template_argument function cannot handle value arguments
Date: Mon, 07 Dec 2009 14:24:00 -0000	[thread overview]
Message-ID: <20091207142439.11060.bschindler@inf.ethz.ch> (raw)

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.


             reply	other threads:[~2009-12-07 14:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07 14:24 bschindler at inf dot ethz dot ch [this message]
2009-12-07 18:04 ` [Bug python/11060] " ppluzhnikov at google dot com
2010-01-25 20:06 ` tromey at redhat dot com
2010-04-27 15:25 ` tromey at redhat dot com
2010-05-24  6:22 ` pmuldoon at redhat dot com
2010-05-25 17:48 ` tromey at redhat dot com
2010-05-26 15:27 ` tromey at redhat dot com
2010-07-28 16:25 ` tromey at redhat dot com
2010-07-28 18:10 ` tromey at redhat dot com
2010-07-28 21:04 ` tromey at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091207142439.11060.bschindler@inf.ethz.ch \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).