Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: "Kiran Pradeep" <kiran.happy@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: editing source files in gdb
Date: Sat, 16 Dec 2006 08:21:00 -0000	[thread overview]
Message-ID: <17795.43881.874312.195558@kahikatea.snap.net.nz> (raw)
In-Reply-To: <6e2feee40612160009v6cc314efk86888be0c2413d37@mail.gmail.com>

 > 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


  reply	other threads:[~2006-12-16  8:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-16  8:09 Kiran Pradeep
2006-12-16  8:21 ` Nick Roberts [this message]
2006-12-16  9:58   ` Kiran Pradeep
2006-12-16 17:12     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17795.43881.874312.195558@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb@sourceware.org \
    --cc=kiran.happy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox