GDB: edit command

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GDB: edit command

UVSoft
Hello,

Could you help me to solve a problem?
Here it is:

1. EDITOR=/usr/local/bin/vim
2. export EDITOR
3. cd /home/someuser/someprog/
3. gdb Prog
4. bla-bla-bla
5. edit

It runs VIM but path to the file is

`/home/someuser/someprogProg'...

without a last slash between directory and file name...

so VIM create a new file... `someprogProg'

Am I do something wrong?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: GDB: edit command

Daniel Jacobowitz-2
On Thu, Nov 10, 2005 at 08:16:26PM +0300, UVSoft wrote:

> Hello,
>
> Could you help me to solve a problem?
> Here it is:
>
> 1. EDITOR=/usr/local/bin/vim
> 2. export EDITOR
> 3. cd /home/someuser/someprog/
> 3. gdb Prog
> 4. bla-bla-bla
> 5. edit
>
> It runs VIM but path to the file is
>
> `/home/someuser/someprogProg'...
>
> without a last slash between directory and file name...
>
> so VIM create a new file... `someprogProg'
>
> Am I do something wrong?

What version of GDB is this?  I seem to remember someone fixing this
bug earlier in the year.

You may want to try the latest release, or a current snapshot.

--
Daniel Jacobowitz
CodeSourcery, LLC