Hello
I'm having a few problems using the debugger interface in the CDT interface. I'm using Eclipse Indigo, but I also had the same problem with Helios. I've had the same problems using gdb6.6, gdb6.8, and gdb7.3. In my code I have a structure that contains unions in it. When I try to expand the structure in the "variables" window, nothing happens. It doesn't allow me to view the structures members. Other structures seem to work fine. Using the verbose output for gdb, it says this:
451-var-list-children var15
451^error,msg="Duplicate variable object name"
(gdb)
452-var-list-children var15
452^error,msg="Duplicate variable object name"
Here is the definition of the structure I'm using: (I'm also referencing it with the typedef)
typedef struct Aig_Obj_t_ Aig_Obj_t;
struct Aig_Obj_t_ // 9 words
{
union {
Aig_Obj_t * pNext; // strashing table
int PioNum; // the number of PI/PO
};
Aig_Obj_t * pFanin0; // fanin
Aig_Obj_t * pFanin1; // fanin
Aig_Obj_t * pHaig; // pointer to the HAIG node
unsigned int Type : 3; // object type
unsigned int fPhase : 1; // value under 000...0 pattern
unsigned int fMarkA : 1; // multipurpose mask
unsigned int fMarkB : 1; // multipurpose mask
unsigned int nRefs : 26; // reference count
unsigned Level : 24; // the level of this node
unsigned nCuts : 8; // the number of cuts
int TravId; // unique ID of last traversal involving the node
int Id; // unique ID of the node
union { // temporary store for user's data
void * pData;
int iData;
float dData;
};
};
oddly enough, I am able to print the values of the structures members by typing commands in the verbose gdb window:
print pAigObj->pData
453-interpreter-exec console "print pAigObj->pData"
~"$3 = (void *) 0x0\n"
$3 = (void *) 0x0
453^done
I have the same problem when I use the "Standard Create Process Launcher" and when I use "GDB (DSF) Create Process Launcher". Has anyone else experienced these problems?