From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74130 invoked by alias); 5 Mar 2016 00:59:10 -0000 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 Received: (qmail 74101 invoked by uid 89); 5 Mar 2016 00:59:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=artificial, U*nsajko, nsajkogmailcom, sk:nsajko X-HELO: mail-yw0-f181.google.com Received: from mail-yw0-f181.google.com (HELO mail-yw0-f181.google.com) (209.85.161.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 05 Mar 2016 00:59:07 +0000 Received: by mail-yw0-f181.google.com with SMTP id g3so2201244ywa.3 for ; Fri, 04 Mar 2016 16:59:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Ud04T1xZLRoZ5sUnaysfYSMQP/7SK0p4XnWwrFniHfk=; b=HBvyunJZn7Z4IPdlglwDTxvjkVybPoOpwvzxB4/6qm93HjqIbf1l+a3nYPT7FiVPdg v/JWRIAaKZq2apXxa4o4I5UIIZyNVkkT6Hl+vjxrmEZfjGO8W7VE1+ONBkE1ZmdO6OWv f+ELgERlHYezz5VVM1JcVHHrjCGO/5SK5+w/5gXFg+Yg3nIkJ8XXaG3tCZGZtSzcH8QJ t19MlmwbnSAxInOS+srA9ltQwIRzpu48I8zAtblbW2+dYwgmrcDD0W5zY3memXkMnVx4 pCAoFa91a3lg5VrcWaFvtHDjT4/Pc5L19X4LqQ3zYou5zbltcBoyIi8ElE3z8BCe3NK5 znzw== X-Gm-Message-State: AD7BkJKNTZBGMNMLOa7H60a1gUOE2c/VXHm0SI/chqL98BHJTiE+leIybUE9ZZOHs9Brz4nfRVetJOXUdtqO1w== MIME-Version: 1.0 X-Received: by 10.129.98.138 with SMTP id w132mr6497903ywb.226.1457139545868; Fri, 04 Mar 2016 16:59:05 -0800 (PST) Received: by 10.37.24.2 with HTTP; Fri, 4 Mar 2016 16:59:05 -0800 (PST) In-Reply-To: <87d1r9nb1z.fsf@linux-m68k.org> References: <20160304144231.GA7767@host1.jankratochvil.net> <87k2lim6rg.fsf@linux-m68k.org> <87d1r9nb1z.fsf@linux-m68k.org> Date: Sat, 05 Mar 2016 00:59:00 -0000 Message-ID: Subject: Re: Printing a 2D array in a C program From: Neven Sajko To: Andreas Schwab Cc: Jan Kratochvil , gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00016.txt.bz2 On 4 March 2016 at 23:16, Andreas Schwab wrote: > Neven Sajko writes: > >> But it seems `print *m@(int)sz' is needed because enum aren't integral types? > > An enum constant has type int. > > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different." I know but if I try to do it without the cast, GDB complains that the right operand to the artificial array operator is not an integral type.