public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/10053] New: Incomplete Type
@ 2009-04-10  0:15 amir dot hallajpour at itt dot com
  2010-08-24 21:45 ` [Bug gdb/10053] " tromey at redhat dot com
  0 siblings, 1 reply; 3+ messages in thread
From: amir dot hallajpour at itt dot com @ 2009-04-10  0:15 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gdb/10053] Incomplete Type
  2009-04-10  0:15 [Bug gdb/10053] New: Incomplete Type amir dot hallajpour at itt dot com
@ 2010-08-24 21:45 ` tromey at redhat dot com
  0 siblings, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2010-08-24 21:45 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-08-24 21:45 -------
Most likely, the problem is in your compiler.
You can verify that by examining the DWARF (e.g., "readelf -wi")
and looking for a definition of the structure in question.
But, on the off chance that this is a gdb bug, you could try a newer
version of gdb.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com
             Status|UNCONFIRMED                 |WAITING


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gdb/10053] Incomplete Type
       [not found] <bug-10053-4717@http.sourceware.org/bugzilla/>
@ 2014-09-12 22:10 ` sergiodj at redhat dot com
  0 siblings, 0 replies; 3+ messages in thread
From: sergiodj at redhat dot com @ 2014-09-12 22:10 UTC (permalink / raw)
  To: gdb-prs

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

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sergiodj at redhat dot com

--- Comment #2 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Have you been able to follow Tom's advices?  What is the status of this issue?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-12 22:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-10  0:15 [Bug gdb/10053] New: Incomplete Type amir dot hallajpour at itt dot com
2010-08-24 21:45 ` [Bug gdb/10053] " tromey at redhat dot com
     [not found] <bug-10053-4717@http.sourceware.org/bugzilla/>
2014-09-12 22:10 ` sergiodj at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).