From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2585 invoked by alias); 24 Apr 2003 21:55:01 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2576 invoked from network); 24 Apr 2003 21:55:00 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 24 Apr 2003 21:55:00 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h3OLt0D27826 for ; Thu, 24 Apr 2003 17:55:00 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3OLt0q21746 for ; Thu, 24 Apr 2003 17:55:00 -0400 Received: from [150.1.200.14] (vpn50-53.rdu.redhat.com [172.16.50.53]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3OLsxh09333 for ; Thu, 24 Apr 2003 17:54:59 -0400 Subject: Re: [RFA] varobj: call CHECK_TYPEDEF From: Keith Seitz To: "gdb-patches@sources.redhat.com" In-Reply-To: <3EA84A9B.5020308@redhat.com> References: <1051215397.1538.43.camel@lindt.uglyboxes.com> <3EA84A9B.5020308@redhat.com> Content-Type: multipart/mixed; boundary="=-4beZb574nvjnMEONLg9e" Organization: Message-Id: <1051221433.1534.72.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Thu, 24 Apr 2003 22:27:00 -0000 X-SW-Source: 2003-04/txt/msg00473.txt.bz2 --=-4beZb574nvjnMEONLg9e Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 489 On Thu, 2003-04-24 at 13:35, Andrew Cagney wrote: > Don't forget a gdb.mi/insight219 testcase. Doh! How about the attached? (This is the minimal test that I could get to reproduce it. It must use multiple files. That's why it never showed up before, apparently.) Keith testsuite/gdb.mi/ChangeLog 2003-04-24 Keith Seitz * insight219.exp: New test. * insight219.cc: New file. * insight219.h: New file. * insight219-b.cc: New file. --=-4beZb574nvjnMEONLg9e Content-Disposition: attachment; filename=insight219-test.patch Content-Type: text/x-patch; name=insight219-test.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2910 Index: insight219-b.cc =================================================================== RCS file: insight219-b.cc diff -N insight219-b.cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ insight219-b.cc 24 Apr 2003 21:54:00 -0000 @@ -0,0 +1,4 @@ +#include "insight219.h" + +B::~B() {} + Index: insight219.cc =================================================================== RCS file: insight219.cc diff -N insight219.cc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ insight219.cc 24 Apr 2003 21:54:00 -0000 @@ -0,0 +1,8 @@ +#include "insight219.h" + +int +main(int argc, char *argv[]) +{ + B *b = new B(); + return 0; +}; Index: insight219.exp =================================================================== RCS file: insight219.exp diff -N insight219.exp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ insight219.exp 24 Apr 2003 21:54:00 -0000 @@ -0,0 +1,61 @@ +# Copyright 2003 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +# +# test insight/792 +# + +if { [skip_cplus_tests] } { continue } + +load_lib mi-support.exp +set MIFLAGS "-i=mi" + +gdb_exit +if [mi_gdb_start] { + continue +} + +set testfile insight219 +set srcfiles [list insight219.cc insight219-b.cc] +set binfile $objdir/$subdir/$testfile + +if [get_compiler_info ${binfile} "c++"] { + return -1; +} + +set srcs "" +foreach srcfile $srcfiles { + set srcs "$srcs $srcdir/$subdir/$srcfile" +} + +if {[gdb_compile $srcs $binfile executable {debug c++}] != ""} { + gdb_suppress_entire_file "Testcase compile failed, so all test in this file will automatically fail." +} + +# Test that children of classes are properly reported + +# Run to main +mi_run_to_main + +mi_gdb_test "-var-create - * b" \ + "(&\".*\"\r\n)*\\^done,name=\"var1\",numchild=\"1\",type=\"class B \\\*\"" \ + "create var for class B" + +mi_gdb_exit +return 0 Index: insight219.h =================================================================== RCS file: insight219.h diff -N insight219.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ insight219.h 24 Apr 2003 21:54:00 -0000 @@ -0,0 +1,8 @@ +class B +{ +public: + virtual ~B(); + +private: + int b; +}; --=-4beZb574nvjnMEONLg9e--