doug@zaphod.prime.com (07/13/89)
in gdb references to a class variable (member) cause it to crash. At least
this happened with the following class:
class symbol {
char* name;
symbol* next;
// hash table
static symbol* table[RADIX];
// public methods
public:
symbol(char* n) { name = n; next = 0;};
friend int lookup(char*);
};
I referenced symbol::table[0] and boom. Otherwise I'm very pleased with the
combination of g++ and gdb.
---------
Douglas Rand
Internet: doug@primerd.prime.com
Snail: Prime Computer, 500 Old Conn Path, MS10C-17, Framingham, Ma 01701
Disclaimer: PRIME doesn't believe a word I say, and fewer that I write.