From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17701 invoked by alias); 4 Aug 2009 04:34:00 -0000 Received: (qmail 17686 invoked by uid 48); 4 Aug 2009 04:34:00 -0000 Date: Tue, 04 Aug 2009 04:34:00 -0000 From: "lucienmp_antispam at yahoo dot com" To: gdb-prs@sourceware.org Message-ID: <20090804043359.10476.lucienmp_antispam@yahoo.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug gdb/10476] New: gdb.type.template_argument( N ) for NON-TYPE parameters throws incorrect exception X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00032.txt.bz2 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 "", line 1, in 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 "", line 1, in 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 "", line 1, in 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 "", line 1, in 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 "", line 1, in 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.