unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: gud.el organization and adding debuggers
Date: Thu, 02 Feb 2006 00:30:51 -0500	[thread overview]
Message-ID: <m164nyl4yt.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <17377.22796.880736.93318@panix3.panix.com> (R. Bernstein's message of "Wed, 1 Feb 2006 19:57:48 -0500")

> So in this scenario to add a new debugger you copy a *file* rather
> than a section of this file and *forget* to modify that
> gud-menu-map. And along with this, I guess I'm also suggesting that
> instead of listing all of the debugger capabilities in the
> easy-mmode-defmap gud-menu-map, the capabilities would be added in the
> individual debuggers.

Yes, GUD's support for particular debuggers should be made more modular.
It should also be possible to have several GUD sessions using different
debuggers at the same time.

Patches welcome.

I think a good first step would be to kill gud-def.
Instead of gud sub-modes using

  (gud-def gud-break "break %f:%l"  "\C-b" "Set breakpoint at current line.")

in their main function, we could have a top-level (for example)

  (define-gud-cmd gud-break "\C-b" "Set breakpoint at current line.")

and then the gud sub-mode would only do something like

  (set (make-local-variable 'gud-break-cmd) "break %f:%l")

so the global menu could use
  :visible gud-break-cmd
instead of
  :visible (memq gud-minor-mode '(gdbmi gdb dbx jdb))

Of course, maybe this is not the best idea.  I'm also thinking that some
each gud sub-mode should be defined as a major mode that derives from
gud-mode.


        Stefan

  reply	other threads:[~2006-02-02  5:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-02  0:57 gud.el organization and adding debuggers R. Bernstein
2006-02-02  5:30 ` Stefan Monnier [this message]
2006-02-02 22:50   ` R. Bernstein
2006-02-03  2:30     ` Stefan Monnier
2006-02-03  4:08       ` R. Bernstein
2006-02-03  4:34         ` Stefan Monnier
2006-02-05  7:44   ` Nick Roberts
2006-02-05  7:44 ` Nick Roberts
     [not found] <20060205174024.2BCBB9DB3E@mail2.panix.com>
2006-02-06  3:02 ` R. Bernstein
2006-02-06  5:07   ` Nick Roberts

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=m164nyl4yt.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).