From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 981 invoked by alias); 7 Mar 2007 18:52:10 -0000 Received: (qmail 972 invoked by uid 22791); 7 Mar 2007 18:52:09 -0000 X-Spam-Check-By: sourceware.org Received: from www.nabble.com (HELO talk.nabble.com) (72.21.53.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Mar 2007 18:52:02 +0000 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HP1F2-0008Oq-M0 for gdb@sources.redhat.com; Wed, 07 Mar 2007 10:52:00 -0800 Message-ID: <9359526.post@talk.nabble.com> Date: Wed, 07 Mar 2007 18:52:00 -0000 From: ppmoore To: gdb@sources.redhat.com Subject: Re: Get >incomplete type> when I try to display a variable In-Reply-To: <9355446.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: polomora@gmail.com References: <9355446.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00116.txt.bz2 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 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.