I ran into some strange debugger behavior when tracing through my program, when I added an element of an array of structures to the watches, it displayed "structure has no component named c_str" instead of a list of member variables and their values. I can't tell why this is, when I added an element of a different array of different structures (with similar members) it displayed that structure's contents normally. Is this a problem with GDB? With Code::Blocks? With my programming?
If it makes any difference, the layout of the structure is as follows:
struct bf_string
{
unsigned long long keyid;
unsigned long offset;
char *string;
char encountered;
};
Thanks in advance.