public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception
@ 2009-08-04  4:34 lucienmp_antispam at yahoo dot com
  2009-08-04  4:34 ` [Bug gdb/10476] " lucienmp_antispam at yahoo dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lucienmp_antispam at yahoo dot com @ 2009-08-04  4:34 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/10476] gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception
  2009-08-04  4:34 [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception lucienmp_antispam at yahoo dot com
@ 2009-08-04  4:34 ` lucienmp_antispam at yahoo dot com
  2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: lucienmp_antispam at yahoo dot com @ 2009-08-04  4:34 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From lucienmp_antispam at yahoo dot com  2009-08-04 04:34 -------
Created an attachment (id=4107)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4107&action=view)
Shell to kick off the test, remember to set the GDB Path to arch


-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/10476] gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception
  2009-08-04  4:34 [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception lucienmp_antispam at yahoo dot com
  2009-08-04  4:34 ` [Bug gdb/10476] " lucienmp_antispam at yahoo dot com
  2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
@ 2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
  2010-01-25 20:04 ` [Bug python/10476] " tromey at redhat dot com
  2010-01-25 20:06 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: lucienmp_antispam at yahoo dot com @ 2009-08-04  4:35 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From lucienmp_antispam at yahoo dot com  2009-08-04 04:35 -------
Created an attachment (id=4108)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4108&action=view)
Example program that will cause the error...


-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/10476] gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception
  2009-08-04  4:34 [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception lucienmp_antispam at yahoo dot com
  2009-08-04  4:34 ` [Bug gdb/10476] " lucienmp_antispam at yahoo dot com
@ 2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
  2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: lucienmp_antispam at yahoo dot com @ 2009-08-04  4:35 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From lucienmp_antispam at yahoo dot com  2009-08-04 04:35 -------
Created an attachment (id=4109)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4109&action=view)
Workaround Pretty Printer example...


-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug python/10476] gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception
  2009-08-04  4:34 [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception lucienmp_antispam at yahoo dot com
                   ` (2 preceding siblings ...)
  2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
@ 2010-01-25 20:04 ` tromey at redhat dot com
  2010-01-25 20:06 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2010-01-25 20:04 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |python


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug python/10476] gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception
  2009-08-04  4:34 [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception lucienmp_antispam at yahoo dot com
                   ` (3 preceding siblings ...)
  2010-01-25 20:04 ` [Bug python/10476] " tromey at redhat dot com
@ 2010-01-25 20:06 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2010-01-25 20:06 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-01-25 20:06 -------


*** This bug has been marked as a duplicate of 11060 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-25 20:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04  4:34 [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception lucienmp_antispam at yahoo dot com
2009-08-04  4:34 ` [Bug gdb/10476] " lucienmp_antispam at yahoo dot com
2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
2009-08-04  4:35 ` lucienmp_antispam at yahoo dot com
2010-01-25 20:04 ` [Bug python/10476] " tromey at redhat dot com
2010-01-25 20:06 ` tromey at redhat dot com

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).