This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb printing of dynamically allocated matrix
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