public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "amir dot hallajpour at itt dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/10053] New: Incomplete Type Date: Fri, 10 Apr 2009 00:15:00 -0000 [thread overview] Message-ID: <20090410001547.10053.amir.hallajpour@itt.com> (raw) 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.
next reply other threads:[~2009-04-10 0:15 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-04-10 0:15 amir dot hallajpour at itt dot com [this message] 2010-08-24 21:45 ` [Bug gdb/10053] " tromey at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090410001547.10053.amir.hallajpour@itt.com \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).