This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: cli/1293: edit command edits invalid source
- From: Laurent Masse-Navette <Laurent dot Masse-Navette at synopsys dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 20 Dec 2003 01:58:00 -0000
- Subject: Re: cli/1293: edit command edits invalid source
- Reply-to: Laurent Masse-Navette <Laurent dot Masse-Navette at synopsys dot com>
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.