From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30810 invoked by alias); 19 Jul 2007 05:26:33 -0000 Received: (qmail 30802 invoked by uid 22791); 19 Jul 2007 05:26:33 -0000 X-Spam-Check-By: sourceware.org Received: from 0x5731473b.taanxx2.adsl-dhcp.tele.dk (HELO linuxbog.dk) (87.49.71.59) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Jul 2007 05:26:29 +0000 Received: from localhost (localhost [127.0.0.1]) by linuxbog.dk (Postfix) with ESMTP id D3898329361; Thu, 19 Jul 2007 07:26:26 +0200 (CEST) Date: Fri, 20 Jul 2007 18:48:00 -0000 From: Peter Toft To: Daniel Jacobowitz cc: gdb@sourceware.org Subject: Re: gdb printing of dynamically allocated matrix In-Reply-To: <20070719030927.GA13744@caradoc.them.org> Message-ID: References: <20070718183326.GA25345@caradoc.them.org> <20070719030927.GA13744@caradoc.them.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811583-1585967685-1184822786=:4288" 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/msg00150.txt.bz2 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-1585967685-1184822786=:4288 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Content-length: 883 On Wed, 18 Jul 2007, Daniel Jacobowitz wrote: > On Wed, Jul 18, 2007 at 10:32:19PM +0200, Peter Toft wrote: > > From the manual I don't understand how the macro is further hacked to also > > give the exact output format as > > (gdb) print c > > $1 = {{2, -2, 22}, {12, -12, -12}} > > > > so my matprint does not insert into a dollar variable - can someone help > > with this last part? > > I don't think you're going to be able to do that - our type system > does not deal well with structures that don't live exactly in target > memory. Yet. ok - on your "Yet" statement -> such an improvement would be very interesting for most designers working with numerical analysis, signal&image processing, and similar fields of work. Thank you again Peter -- Peter Toft, Ph.D. [pto@linuxbog.dk] http://petertoft.dk Følg min Linux-blog på http://www.version2.dk/blogs/petertoft ---1463811583-1585967685-1184822786=:4288--