From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4119 invoked by alias); 28 Nov 2004 18:01:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3928 invoked from network); 28 Nov 2004 18:01:03 -0000 Received: from unknown (HELO burundai.radix50.net) (82.83.192.69) by sourceware.org with SMTP; 28 Nov 2004 18:01:03 -0000 Received: from burundai.radix50.net (localhost [127.0.0.1]) by burundai.radix50.net (8.13.1/8.13.1/Debian-14) with ESMTP id iASI3Skw005723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 28 Nov 2004 19:03:28 +0100 Received: (from ibr@localhost) by burundai.radix50.net (8.13.1/8.13.1/Debian-14) id iASI3Ssg005722 for gdb@sources.redhat.com; Sun, 28 Nov 2004 19:03:28 +0100 Date: Mon, 29 Nov 2004 13:56:00 -0000 From: Baurjan Ismagulov To: gdb@sources.redhat.com Subject: Re: what is the $cdir and $cwd? Message-ID: <20041128180327.GC5339@ata.cs.hun.edu.tr> Mail-Followup-To: gdb@sources.redhat.com References: <20041128012604.34047.qmail@web53901.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041128012604.34047.qmail@web53901.mail.yahoo.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2004-11/txt/msg00249.txt.bz2 Hello Gan, On Sat, Nov 27, 2004 at 05:26:04PM -0800, gan_xiao_jun@yahoo.com wrote: > Is the $cwd the current working directory of the > target? I haven't used $cwd in remote debugging, but I think it should be the current working directory on the host. > And the $cdir the directory is in which the source > file was compiled into object code? Yes. > And how the $cdir save to obj files (add -g when > compile or others flags)? At least -g seems to do that. > Sometime even I use -g, > when I use > strings file.o > I also can't find the source file name in the result, > it that mean the source file name is not contained in > file.o? Seems that strings does not scan debugging sections by default; try "strings -a file.o". > How can I control the directory saved to obj files as > absolute path or relative > path? Use absolute or relative path at the gcc command line. With kind regards, Baurjan.