From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27235 invoked by alias); 16 Dec 2006 08:21:22 -0000 Received: (qmail 27221 invoked by uid 22791); 16 Dec 2006 08:21:20 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 16 Dec 2006 08:21:13 +0000 Received: from kahikatea.snap.net.nz (p202-124-124-203.snap.net.nz [202.124.124.203]) by viper.snap.net.nz (Postfix) with ESMTP id E3E963D839E; Sat, 16 Dec 2006 21:22:35 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 7FC36BE3F2; Sat, 16 Dec 2006 21:16:43 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17795.43881.874312.195558@kahikatea.snap.net.nz> Date: Sat, 16 Dec 2006 08:21:00 -0000 To: "Kiran Pradeep" Cc: gdb@sourceware.org Subject: Re: editing source files in gdb In-Reply-To: <6e2feee40612160009v6cc314efk86888be0c2413d37@mail.gmail.com> References: <6e2feee40612160009v6cc314efk86888be0c2413d37@mail.gmail.com> X-Mailer: VM 7.19 under Emacs 22.0.91.18 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00146.txt.bz2 > The problem is that when i give 'edit' from inside gdb to edit the > current source file, gdb is opening a new file in the editor under a > different name. The funny thing is that the new file has the name of > the absolute path of the file with a slash between directory and file > missing. For eg: if file 'test.cpp' is in directory '/home/kiran' then > gdb is opening the file as /home/kirantest.cpp. Could any one help me > in this ? You don't say what version of GDB this is. I see what you do for 6.3 but not GDB in CVS (6.6.50.20061210-cvs). Perhaps updating to a newer GDB will solve your problem. > This feature (coupled with make from inside gdb) would be useful to me > as dont have to exit from gdb for editing the source file if i find a > mistake in my code. As a side note, the mode that I'm writing for Emacs tries to achieve this too. -- Nick http://www.inet.net.nz/~nickrob