public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* GDB: edit command
@ 2005-11-10 17:16 UVSoft
  2005-11-10 19:46 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: UVSoft @ 2005-11-10 17:16 UTC (permalink / raw)
  To: gdb

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GDB: edit command
  2005-11-10 17:16 GDB: edit command UVSoft
@ 2005-11-10 19:46 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-11-10 19:46 UTC (permalink / raw)
  To: UVSoft; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-10 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-10 17:16 GDB: edit command UVSoft
2005-11-10 19:46 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).