From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12910 invoked by alias); 9 Sep 2009 22:38:39 -0000 Received: (qmail 12832 invoked by uid 22791); 9 Sep 2009 22:38:37 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Sep 2009 22:38:32 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n89McUxP031756; Wed, 9 Sep 2009 18:38:31 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n89McTVS005094; Wed, 9 Sep 2009 18:38:30 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n89McSc7020265; Wed, 9 Sep 2009 18:38:29 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 5E742378182; Wed, 9 Sep 2009 16:38:28 -0600 (MDT) From: Tom Tromey To: selcuk.kopru@tyazilimevi.com Cc: gdb@sourceware.org Subject: Re: recursive user-defined commands and References: <1250118614.3975.43.camel@selcuk-laptop> <1252092562.3662.8.camel@selcuk-laptop> <1252109601.3667.47.camel@selcuk-laptop> Reply-To: tromey@redhat.com Date: Wed, 09 Sep 2009 22:38:00 -0000 In-Reply-To: <1252109601.3667.47.camel@selcuk-laptop> (Selcuk Kopru's message of "Fri, 04 Sep 2009 20:13:21 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00158.txt.bz2 >>>>> "Selcuk" == Selcuk Kopru writes: Selcuk> Thanks for the reply. I'm making progress but was not able to Selcuk> solve the problem yet. The following 3 examples didn't work, all Selcuk> giving "A syntax error in expression, near `)malloc(..." Selcuk> message: Selcuk> 1) set variable $myvar = (List::LNode**)malloc(10 * Selcuk> sizeof(List::LNode*)) Yes, casts with qualified types often do not work. This is a bug in GDB. Sometimes putting single quotes around the type helps. FWIW, I believe Keith has basically killed this bug on his branch in the archer repository. He's submitting this patch series now. Tom