Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugger ignoring expansion of variables(Debugger ignoring expansion of variables)
Debugger ignoring expansion of variables [message #743645] Fri, 21 October 2011 16:29
john.backes is currently offline john.backesFriend
Messages: 1
Registered: October 2011
Junior Member
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?

Previous Topic:CDT cannot resolve functions from std::chrono?
Next Topic:gdb help
Goto Forum:
  


Current Time: Thu Apr 25 13:31:49 GMT 2024

Powered by FUDForum. Page generated in 0.03042 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top