[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Suggestion: array-of-structures slices
From: |
Atwood, Robert C |
Subject: |
RE: Suggestion: array-of-structures slices |
Date: |
Tue, 2 Dec 2003 11:25:33 -0000 |
You must have read my mind, I would like to see this feature, I often found
it useful in cvd debugger (only) on an SGI machine; but in my understanding
-- would this not require the feature to be implemented in the underlying
debugger? the command display address@hidden is a gdb command; and ddd somehow
gets the output of it and puts it into the display right?
If the underlying debugger would return that slice could DDD display it?
Is there an existing (underlying) debugger for linux/gnu platform that does
this?
Should this be a question on the gdb project list?
Thanks
Robert
-----Original Message-----
From: Mihai Basa [mailto:address@hidden
Sent: 01 December 2003 15:54
To: address@hidden
Subject: Suggestion: array-of-structures slices
Hello!
DDD can plot values from a slice of an array - IF that array is made up of
base datatypes. It cannot plot slices if the array is made of structures,
and
I believe it would be very useful if it could!
Example: assume we have an array A[100] made up of structures like this:
typedef struct {
int x;
int y;
};
I think it would be good if DDD could plot/display the string of A.x'es. The
syntax describing this would probably best be: (address@hidden).x (which
currently
just displays A[0].x). This means reading an array of 100 elements, starting
from A[0] with a stride equal to sizeof(A[0]). Currently DDD can only read
with a stride of sizeof(x), if we were to say (A[0].x)@100, which reads
alternating x'es and y'es.
Thank you for taking the time to read this!
Deepest regards,
Mihai Basa
_______________________________________________
Ddd mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/ddd