gdb printing of dynamically allocated matrix

Daniel Jacobowitz drow@false.org
Thu Jul 19 03:10:00 GMT 2007


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



More information about the Gdb mailing list