Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: ppmoore <polomora@gmail.com>
To: gdb@sources.redhat.com
Subject: Re: Get >incomplete type> when I try to display a variable
Date: Wed, 07 Mar 2007 18:52:00 -0000	[thread overview]
Message-ID: <9359526.post@talk.nabble.com> (raw)
In-Reply-To: <9355446.post@talk.nabble.com>


Sorry for waste of bandwidth.

Found it: compile with -ggdb option.

Paul



ppmoore wrote:
> 
> Hello,
> 
> I've been trying to debug a program, where the source files and the binary
> are in separate directories (the .h and .c files are in the same
> directory). I just copy all source files to the destination execution
> directory where the executable is located (the target machine is not on
> the same network as the development machine), and this works fine.
> 
> I'm now debugging another section of code where the .c and the .h files
> are in separate directories. As before, I copy these across to the
> executable location. When I debug, I get the error <incomplete type> when
> I try to examine the contents of a structure or pointer to a structure. Is
> this because in the development enviromnent, the .h and .c files are in
> different directories?
> 
> Can anyone help?
> 
> Thanks,
> Paul
> 

-- 
View this message in context: http://www.nabble.com/Get-%3Eincomplete-type%3E-when-I-try-to-display-a-variable-tf3362883.html#a9359526
Sent from the gdb - General mailing list archive at Nabble.com.


      parent reply	other threads:[~2007-03-07 18:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-07 15:47 ppmoore
2007-03-07 15:49 ` Daniel Jacobowitz
2007-03-07 18:52 ` ppmoore [this message]

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=9359526.post@talk.nabble.com \
    --to=polomora@gmail.com \
    --cc=gdb@sources.redhat.com \
    /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: link
Be 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