From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30070 invoked by alias); 27 Jan 2010 15:23:19 -0000 Received: (qmail 30060 invoked by uid 22791); 27 Jan 2010 15:23:18 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from gv-out-0910.google.com (HELO gv-out-0910.google.com) (216.239.58.184) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jan 2010 15:23:13 +0000 Received: by gv-out-0910.google.com with SMTP id n29so158049gve.39 for ; Wed, 27 Jan 2010 07:23:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.182.200 with SMTP id r8mr1032305hbg.36.1264605790970; Wed, 27 Jan 2010 07:23:10 -0800 (PST) In-Reply-To: References: Date: Wed, 27 Jan 2010 15:23:00 -0000 Message-ID: Subject: Re: Custom call frame description From: Mitar To: tromey@redhat.com Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 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: 2010-01/txt/msg00196.txt.bz2 Hi! Why for: char foo[] = "bar"; GCC produces for DW_AT_type for subrange (DW_TAG_subrange_type) of the array: .byte 0x4 @ DW_AT_byte_size .byte 0x7 @ DW_AT_encoding That is unsigned four bytes int. Why is not simply a char - the same type as it is defined in DW_TAG_array_type? Mitar