Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* what is the $cdir and $cwd?
@ 2004-11-28 18:01 gan_xiao_jun
  2004-11-29 13:56 ` Baurjan Ismagulov
  0 siblings, 1 reply; 2+ messages in thread
From: gan_xiao_jun @ 2004-11-28 18:01 UTC (permalink / raw)
  To: gdb

Is the $cwd the current working directory of the
target?
And the $cdir the directory is in which the source
file was compiled into object code?
And how the $cdir save to obj files (add -g when
compile or others flags)?
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?
                                                      
                         
How can I control the directory saved to obj files as
absolute path or relative
path?

Thanks in advance
gan





		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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

* Re: what is the $cdir and $cwd?
  2004-11-28 18:01 what is the $cdir and $cwd? gan_xiao_jun
@ 2004-11-29 13:56 ` Baurjan Ismagulov
  0 siblings, 0 replies; 2+ messages in thread
From: Baurjan Ismagulov @ 2004-11-29 13:56 UTC (permalink / raw)
  To: gdb

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.


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

end of thread, other threads:[~2004-11-28 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-28 18:01 what is the $cdir and $cwd? gan_xiao_jun
2004-11-29 13:56 ` Baurjan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox