Article View: gnu.gdb.bug
Article #186Class var refs
From: 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.
Technical Details
Message-ID:
<134400002@zaphod>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!bloom-beacon!primerd!zaphod!dougShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!bloom-beacon!primerd!zaphod!doug From: doug@zaphod.prime.com Newsgroups: gnu.gdb.bug Subject: Class var refs Message-ID: <134400002@zaphod> Date: 12 Jul 89 19:00:00 GMT Lines: 23 Nf-ID: #N:zaphod:134400002:000:627 Nf-From: zaphod.prime.com!doug Jul 12 15:00:00 1989