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 gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception


I was attempting to write a pretty pritner for a class and found that I cant get
the arguments to a template if they are anything OTHER than a type (eg if they
are bool, int, or other non-type datas).  

I was trying this with the 6.8.50 from 2009-08-3rd and got the following sort of
output...

    gdb main
    b some-line
    run
    print MyTest
    { var=10, woo=30 }
    py print gdb.history(0).type.template_argument(0)
    int
    py print gdb.history(0).type.template_argument(1)
    float
    py print gdb.history(0).type.template_argument(2)
    RuntimeError: No type named 12.
    py print gdb.history(0).type.template_argument(3)
     Traceback (most recent call last):
     File "<string>", line 1, in <module>
     RuntimeError: No type named EN_THREE.
     Error while executing Python code.
    py print gdb.history(0).type.template_argument(4)
     Traceback (most recent call last):
       File "<string>", line 1, in <module>
     RuntimeError: No type named true.
     Error while executing Python code.
    py print gdb.history(0).type.template_argument(5)
     Traceback (most recent call last):
      File "<string>", line 1, in <module>
     RuntimeError: No type named func.
     Error while executing Python code.
    py print gdb.history(0).type.template_argument(6)
     Traceback (most recent call last):
       File "<string>", line 1, in <module>
     RuntimeError: No type named (double&)(&Y).
     Error while executing Python code.
    py print gdb.history(0).type.template_argument(7)
     Traceback (most recent call last):
      File "<string>", line 1, in <module>
     RuntimeError: No type named (char*)(&cstr_two).
     Error while executing Python code.

-- 
           Summary: gdb.type.template_argument( N ) for NON-TYPE parameters
                    throws incorrect exception
           Product: gdb
           Version: archer
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: lucienmp_antispam at yahoo dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10476

------- 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]