From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12304 invoked by alias); 22 Jun 2007 11:54:02 -0000 Received: (qmail 12296 invoked by uid 22791); 22 Jun 2007 11:54:01 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Jun 2007 11:53:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id A06A82AA66D; Fri, 22 Jun 2007 07:53:57 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id butrIPoqGYeY; Fri, 22 Jun 2007 07:53:57 -0400 (EDT) Received: from [127.0.0.1] (nile.gnat.com [205.232.38.5]) by rock.gnat.com (Postfix) with ESMTP id E26CB2AA66B; Fri, 22 Jun 2007 07:53:56 -0400 (EDT) Message-ID: <467BB857.8070507@adacore.com> Date: Fri, 22 Jun 2007 11:54:00 -0000 From: Robert Dewar User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Bogdan Slusarczyk , gdb@sourceware.org Subject: Re: problem with creating variable object (gdb6.3) References: <467B9F64.7070201@op.pl> <467BA196.1030907@op.pl> <20070622110549.GB4029@caradoc.them.org> In-Reply-To: <20070622110549.GB4029@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2007-06/txt/msg00194.txt.bz2 Daniel Jacobowitz wrote: > On Fri, Jun 22, 2007 at 12:16:54PM +0200, Bogdan Slusarczyk wrote: >> Additionally I noticed that if I use (short *) instead of (bool *) everything >> is fine What is wrong with 'bool'?? > > Is it a C or C++ program? GDB doesn't know anything about the bool > type in C, because it's not part of the C language. It would seem harmless for gdb to recognize bool rather than giving an error, given it is such standard usage (gdb is not a C compiler, it does not have to strenuously implement the standard :-)) Or, if you are not willing to make that junk, special casing the error message might be helpful.