unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs and Gud
Date: Tue, 8 Jan 2008 13:08:45 +1300	[thread overview]
Message-ID: <18306.48909.334536.443032@kahikatea.snap.net.nz> (raw)
In-Reply-To: <5ufn1qF1i2rg8U1@mid.individual.net>

 > If I run GUD with --annotate=1 then I gat the basic two buffer debugging,
 > and this works OK within an ECB environment.
 > 
 > With --annotate=2  or --annotate=3, GUD doesn't work properly with ECB. I
 > get messages like:- 
 > 
 > "error in process filter; Window height 2 too small (after splitting)"

Both ECB and gdb-ui (the graphical part of GUD) use something called
dedicated windows.  This means that they're protective over their
window configuration and won't let other buffers display in their windows.

 > Sometimes it partly works, but usually the GUD menu disappears and so do
 > most of the debug windows. There seems to be no way to get them back.

Maybe 'C-x 5 2' (opens a new frame) followed by M-x gdb-many-windows in the
new frame will work

 > If I deactivate ECB before I start GDB, then both --annotate=2 and
 > annotate=3 work fine.
 > 
 > Incidentally, I have set gud-gdb-command-name to
 > gdb --annotate=3 /home/chris/mydata/Projects/SimSoup/simsoup-cpp/simsoup/simsoup
 > 
 > I mainly use ECB for programming, and I think that while it would be nice to
 > have it available while debugging, it is workable without.
 > 
 > Any thoughts on how to get ECB and GUD working together would however be
 > welcome.

I think there will always be conflicts without a major redesign.  ECB isn't
part of Emacs and I've never really used it.  Ideally ECB would be integrated
into Emacs but that would be a lot of work and I don't think it's going to
happed anytime soon.

If simsoup is a large program and you really need a project based development
environment you may be better off using Eclipse with CDT.  I guess I shouldn't
really be saying that on help-gnu-emacs and you will have to recommend the use
of GDB in Emacs to others as a daily pennance!



-- 
Nick                                           http://www.inet.net.nz/~nickrob

  reply	other threads:[~2008-01-08  0:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5784.1199600161.18990.help-gnu-emacs@gnu.org>
2008-01-07  1:00 ` Emacs and Gud Chris Gordon-Smith
2008-01-07  3:41   ` Nick Roberts
     [not found]   ` <mailman.5807.1199677314.18990.help-gnu-emacs@gnu.org>
2008-01-07 22:28     ` Chris Gordon-Smith
2008-01-08  0:08       ` Nick Roberts [this message]
     [not found]       ` <mailman.5869.1199754671.18990.help-gnu-emacs@gnu.org>
2008-01-08 23:27         ` Chris Gordon-Smith
2008-01-15 15:54           ` Sebastian Tennant
2008-01-06  6:15 Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2008-01-05  9:55 Chris Gordon-Smith
2008-01-05 11:01 ` Nick Roberts
     [not found] ` <mailman.5756.1199530919.18990.help-gnu-emacs@gnu.org>
2008-01-05 12:36   ` Chris Gordon-Smith

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=18306.48909.334536.443032@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=help-gnu-emacs@gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).