[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DDD graph display of two dimensional arrays?

From: Peter Toft
Subject: DDD graph display of two dimensional arrays?
Date: Wed, 18 Jul 2007 07:26:57 +0200 (CEST)

Hi there

Focus of this mail is DDD on 1D and 2D arrays.

I have pasted a small C-code program at 
(download from http://pastebin.com/pastebin.php?dl=f63009dd8)
which I like your opinion on.

I compile it with "gcc -g"
Throw a breakpoint on line 59 and run under DDD.

* I can see the contents of the "a"-vector in DDD by
  (gdb) graph display *a @ 3
  Very cool!

* I can see the matrix (2D array) contents of the "c"
  matrix by
  (gdb) graph display c
  Elegant - very cool!

* However how can I use DDD to see the contents of "b"
  similar to the contents of "c"?
  The best I can do is 
  (gdb) graph display b
  (gdb) graph display (*b[0] @ 3)  dependent on 3
  (gdb) graph display (*b[1] @ 3)  dependent on 3
  ** if 3 is the "b" graph display **
  Obviously I would like to do the display in one command rather 
  than three, and I think I will manually have to supply
  the length of the vectors, but it seems that I cannot do a 
  compound DDD-operation like
  (gdb) graph display **b @3 @2
  Am I overlooking something or is it simply a limitation of DDD?

My humble thank you to all of you DDD hackers - very very nice program
you have made!!

BTW; sorry if this ends as a double-post. I send a mail 8 hours ago
which did not make it to the list, and it does not appear in the archive
http://lists.gnu.org/archive/html/ddd/2007-07/ (does not exist)


Peter Toft, Ph.D. address@hidden http://petertoft.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]