From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2186 invoked by alias); 20 Jul 2007 18:48:12 -0000 Received: (qmail 2178 invoked by uid 22791); 20 Jul 2007 18:48:11 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 20 Jul 2007 18:48:10 +0000 Received: (qmail 9124 invoked from network); 20 Jul 2007 18:48:07 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 Jul 2007 18:48:07 -0000 To: Peter Toft Cc: gdb@sourceware.org Subject: Re: gdb printing of dynamically allocated matrix References: <20070718183326.GA25345@caradoc.them.org> From: Jim Blandy Date: Fri, 20 Jul 2007 19:08:00 -0000 In-Reply-To: (Peter Toft's message of "Wed, 18 Jul 2007 22:32:19 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-07/txt/msg00151.txt.bz2 Peter Toft writes: >> (gdb) matprint c 2 3 Could you use sizeof to compute the dimensions automatically? Or at least one of them?