From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5672 invoked by alias); 10 Nov 2005 19:46:07 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5655 invoked by uid 22791); 10 Nov 2005 19:46:05 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 10 Nov 2005 19:46:05 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EaIN1-0007tJ-Aq; Thu, 10 Nov 2005 14:46:03 -0500 Date: Thu, 10 Nov 2005 19:46:00 -0000 From: Daniel Jacobowitz To: UVSoft Cc: gdb@sources.redhat.com Subject: Re: GDB: edit command Message-ID: <20051110194603.GA30287@nevyn.them.org> Mail-Followup-To: UVSoft , gdb@sources.redhat.com References: <4373806A.6030400@rambler.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4373806A.6030400@rambler.ru> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00223.txt.bz2 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