From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23298 invoked by alias); 16 Dec 2006 08:09:47 -0000 Received: (qmail 23288 invoked by uid 22791); 16 Dec 2006 08:09:46 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 16 Dec 2006 08:09:42 +0000 Received: by wx-out-0506.google.com with SMTP id h26so1090824wxd for ; Sat, 16 Dec 2006 00:09:40 -0800 (PST) Received: by 10.70.84.6 with SMTP id h6mr2715314wxb.1166256580500; Sat, 16 Dec 2006 00:09:40 -0800 (PST) Received: by 10.70.59.8 with HTTP; Sat, 16 Dec 2006 00:09:40 -0800 (PST) Message-ID: <6e2feee40612160009v6cc314efk86888be0c2413d37@mail.gmail.com> Date: Sat, 16 Dec 2006 08:09:00 -0000 From: "Kiran Pradeep" To: gdb@sourceware.org Subject: editing source files in gdb MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00145.txt.bz2 Hi, I referred to the manual on editing source files from inside gdb using an editor. I gave commands EDITOR=/usr/bin/vim export EDITOR gdb a.out 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 ? 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. Thanks in advance Kiran.