Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by doug
Wed, 12 Jul 1989 19:00
Class var refs
Author: doug
Date: Wed, 12 Jul 1989 19:00
Date: Wed, 12 Jul 1989 19:00
23 lines
1015 bytes
1015 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads