This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/10053] New: Incomplete Type


I'm having problem with viewing data due to incomplete type as reported by 
gdb.  I have read the threads discussing the incomplete type issue, but I 
haven't been able to figure out how to resolve the issue.
I'm using g++ 4.1.2 and gdb 6.5.25.el5rh and running RHEL5.1.  I have a 
env_map.h file defining a typdef structure as following:

typedef struct
{
    CELL_STATE_DATA_TYPE      state_data;         ///< Cell state data
    MAGNITUDE_STATS_TYPE      magnitude_stats;    ///< Magnitude
                                                  ///  statistics

} ENV_MAP_CELL_TYPE;



In a tcm_plot.cpp file, I have the following peice of code (I'm only shwoing 
the relevant portions):

void  TCM_Plot::Process_TCM ()
{
     // Own cell TCM data
    ENV_MAP_CELL_TYPE     own_cell;

    // Pointer to TCM cell
    ENV_MAP_CELL_TYPE    *p_cell;

            // Get pointer to own cell
            p_cell = &Search_TCM [az_index]
                                 [el_index]
                                 [range_index];


        // Get own cell data
        own_cell = *p_cell;

 }


Search_TCM is a thre dimensioal array of type ENV_MAP_CELL_TYPE and the array 
is defined in "tcm_plot.h" file.
When I want to view own_cell, I get incomplete type. Is there something I'm 
doing wrong? how can I resolve this?

Thanks

-- 
           Summary: Incomplete Type
           Product: gdb
           Version: 6.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: amir dot hallajpour at itt dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10053

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]