qnx rtp 9/22/00 cdrom
Perhaps this is a gdb problem, but perhaps not. Gdb cannot figure out
data types I think it should. For example
directory structure
src
lib
red.h
red.cc
app
app.cc
data
data-files.
I’m running from the data sub-directory, both src/lib and src/app have
been added using the dir command.
red.h has a class
class Foo {
public:
int count[4];
SomeType data[bignumber];
int dataCount() { return count[0] + count[1] + count[2] + count[3]; }
int dataByteCount() { return dataCount()sizeof(SomeType) + 4sizeof(int);}
};
which is used in red.cc and app.cc
in app.cc there is
Foo foo
but when printing foo in gdb, it cannot figure out the data type of
foo.count (nor foo.data).
Of course, I can do something like x/4 d &foo.count, but why doesn’t
gdb figure it out?
TIA
http://www.math.fsu.edu/~bellenot
bellenot math.fsu.edu
+1.850.644.7189 (4053fax)