Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
To: gdb@sources.redhat.com
Subject: Re: what is the $cdir and $cwd?
Date: Mon, 29 Nov 2004 13:56:00 -0000	[thread overview]
Message-ID: <20041128180327.GC5339@ata.cs.hun.edu.tr> (raw)
In-Reply-To: <20041128012604.34047.qmail@web53901.mail.yahoo.com>

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.


      reply	other threads:[~2004-11-28 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-28 18:01 gan_xiao_jun
2004-11-29 13:56 ` Baurjan Ismagulov [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=20041128180327.GC5339@ata.cs.hun.edu.tr \
    --to=ibr@ata.cs.hun.edu.tr \
    --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