cli/1293: edit command edits invalid source

Laurent Masse-Navette Laurent.Masse-Navette@synopsys.com
Sat Dec 20 01:58:00 GMT 2003


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.
 



More information about the Gdb-prs mailing list