From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10236 invoked by alias); 19 Jul 2007 03:09:34 -0000 Received: (qmail 10228 invoked by uid 22791); 19 Jul 2007 03:09:33 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Jul 2007 03:09:31 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 61BAD982C3; Thu, 19 Jul 2007 03:09:30 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 3FD55982A3; Thu, 19 Jul 2007 03:09:30 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IBMON-0003a6-U8; Wed, 18 Jul 2007 23:09:27 -0400 Date: Thu, 19 Jul 2007 03:10:00 -0000 From: Daniel Jacobowitz To: Peter Toft Cc: gdb@sourceware.org Subject: Re: gdb printing of dynamically allocated matrix Message-ID: <20070719030927.GA13744@caradoc.them.org> Mail-Followup-To: Peter Toft , gdb@sourceware.org References: <20070718183326.GA25345@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00148.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery