This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cli/1293: edit command edits invalid source


The following reply was made to PR cli/1293; it has been noted by GNATS.

From: Laurent Masse-Navette <Laurent.Masse-Navette@synopsys.com>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: cli/1293: edit command edits invalid source
Date: Sat, 20 Dec 2003 02:48:15 +0100

 I had exactly the same problem in a fairly different coding environment.
 The source tree is spread between a large number of directories. I issue
 the command:
 edit <function_name>
 It does open the editor to browse the code, but the filename is wrong:
 it is the concatenation of the last directory level and the leaf file
 name. E.g. if my function was defined in file '/a/b/c/f.c', it would
 attempt to open a file named 'cf.c'. My editor is emacs. When I attempt
 to open another file, the directory browser seems to be in the context
 of directory '/a/b/', so apparently the only thing which is missing is a
 '/' between the file name and directory name: it should be fairly easy
 to fix, don't you think?
 
 LMN.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]