public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* "Incomplete Type"
@ 2005-05-01 21:21 lin q
  0 siblings, 0 replies; 17+ messages in thread
From: lin q @ 2005-05-01 21:21 UTC (permalink / raw)
  To: gdb

Hi,
  This is a question about DDD, hopefully it is not so off-topic in this 
group.

  I am using DDD 3.3.1 with gdb 6.3 and when I use "Display" command to 
display some complex type data value, it always shows as "incomplete type".

I am pretty sure that all the code are compiled with -g option and in 
starting DDD, I define all the source file paths through --directory option.

Do you know what might go wrong?

Thanks a lot.

_________________________________________________________________
DonÂ’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

^ permalink raw reply	[flat|nested] 17+ messages in thread
* <incomplete type>
@ 2005-08-26  2:06 Craig Jeffree
  2005-08-26 19:04 ` Jim Blandy
  0 siblings, 1 reply; 17+ messages in thread
From: Craig Jeffree @ 2005-08-26  2:06 UTC (permalink / raw)
  To: gdb

Hi all,

I'm having trouble with GDB reporting an incomplete type...

(gdb) p *acft->posn_->fpi_->seg_->wpApi_[0]
$1 = <incomplete type>
(gdb) p *(*acft->posn_->fpi_->seg_->wpApi_)
$2 = <incomplete type>

Although the variable I'm printing is deeply nested there is nothing
unusual or complicated about it.  There is no templating involved in
this hierarchy of objects.  It's simply classes, structs and an array of
a class type.

I can successfully do the following when stopped at the same breakpoint:

(gdb) p *acft->posn_->fpi_->seg_->wpApi_
$3 = (struct Soi::Waypoint *) 0x94d58b8

And I also get...
(gdb) ptype *acft->posn_->fpi_->seg_->wpApi_[0]
type = struct Soi::Waypoint {
    <incomplete type>
}

What is going on???

I'm using gdb 6.3 and gcc 3.2.3 with '-g' so it has the default debug
format for x86 Linux.  The OS is Red Hat Enterprise Linux 3.


I'm sorry I can't be much more specific at the moment.  I'm only seeing
this in a huge application (the debug binary is hundreds of megs).  My
attempts to recreate this on a small scale have failed.  I'm at a loss
as to what I should try next.  Any advice on what might be happening and
what I could look at would be greatly appreciated.

My attempts to recreate it in a simpler environment have included:
- recreated the object hierarchy with dummy classes that don't have
seemingly unrelated dependencies.
- trying to reproduce this: http://lists.gnu.org/archive/html/bug-
gdb/2001-09/msg00092.html
- creating a class hierarchy and functions where I can break inside a
compilation unit that was not compiled with the class hierarchy in scope
and then using the class hierarchy in GDB.
- assorted other random smatterings of code that I don't remember the
details of.

All of the above simply result in the debugger understanding exactly
what I'm doing, it never shows an incomplete type.

Cheers,
Craig.

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

end of thread, other threads:[~2005-09-19  7:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-01 21:21 "Incomplete Type" lin q
2005-08-26  2:06 <incomplete type> Craig Jeffree
2005-08-26 19:04 ` Jim Blandy
2005-08-29  7:50   ` Craig Jeffree
2005-08-29 18:38     ` Jim Blandy
2005-09-01 23:55       ` Craig Jeffree
2005-09-02  0:22         ` Jim Blandy
2005-09-02  1:50           ` Craig Jeffree
2005-09-02 13:16             ` Daniel Jacobowitz
2005-09-05  7:34               ` Craig Jeffree
2005-09-05 14:00                 ` Daniel Jacobowitz
2005-09-06  7:15                   ` Craig Jeffree
2005-09-12  1:34                     ` Daniel Jacobowitz
2005-09-15  5:12                       ` Craig Jeffree
2005-09-19  7:44                         ` Craig Jeffree
2005-09-12  1:35           ` Daniel Jacobowitz
2005-09-02  2:05       ` Craig Jeffree

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).