From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2857 invoked by alias); 12 Sep 2002 00:29:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2840 invoked from network); 12 Sep 2002 00:29:44 -0000 Received: from unknown (HELO ilpostino.physics.ucsb.edu) (128.111.17.245) by sources.redhat.com with SMTP; 12 Sep 2002 00:29:44 -0000 Received: from physics.ucsb.edu (maloney@ppro.physics.ucsb.edu [128.111.16.233]) by ilpostino.physics.ucsb.edu (8.11.6/8.11.2) with ESMTP id g8C0TeT17972 for ; Wed, 11 Sep 2002 17:29:40 -0700 Message-ID: <3D7FDFFA.9060902@physics.ucsb.edu> Date: Wed, 11 Sep 2002 17:29:00 -0000 From: Craig Maloney User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: problems with list... Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00107.txt.bz2 Hi all. I've been having problems using list functions inside of gdb. ----------------------------------- #include #include using namespace std; main(){ list l; vector v; l.push_back(0); l.push_back(1); v.push_back(0); v.push_back(1); } -------------------------------------------- if I try: "p l.size()" I get a "Cannot evaluate function -- may be inlined" even if I compile with an -fno-inline. "ptype l" gives something reasonable which shows "size_t size() const;" None of the same problems with the vector. Does anyone have any idea why this doesn't work? Thanks in advance, Craig