ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DDD will not read files from working directory


From: Andreas Zeller
Subject: Re: DDD will not read files from working directory
Date: 07 Mar 2001 12:32:38 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

Hi!

Keith Ball <address@hidden> writes:

> I am using DDD on linux 2.2 for C programs.
> Whenever I call ddd in the directory of the program I am
> debugging (for instance, "ddd prog.e" in  ~/progdir in tcsh)
> the working directory (as confirmed by "pwd" typed into the 
> GDB prompt, and in the File==>Change Directory menu option)
> is the current working directory ($cwd) of my command shell
> from which I call DDD. However, a call
> to the "get_current_dir_name()" function in my C program 
> returns my *home* directory, not the current one. Also, 
> any files which the program attempts to open must either
> be in the home directory, or have an absolute path
> specified, which is extremely annoying and inefficient. 
> Furthermore, any files I try to send to standard input, 
> using a "< infile" argument in the "Run" window
> or on the GDB command line won't be found unless I give 
> an explicit path. 
> 
> So apparently,  DDD thinks one thing is my current directory
> while GDB and/or my program thinks my *home* directory is.
> 
> Is there a way I can "work around" my program's inability
> to inherit the proper working directory?

I don't get it... DDD has no reason to change the current directory.
Does this problem also occur when running GDB standalone?

-- 
Andreas Zeller     Universitaet Passau
                   http://www.fmi.uni-passau.de/st/staff/zeller/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]