unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Roberts <nick@nick.uklinux.net>
Cc: emacs-devel@gnu.org
Subject: Problems with new GDB toolbar
Date: Mon, 18 Nov 2002 01:15:50 +0000	[thread overview]
Message-ID: <15832.16198.358673.792906@nick.uklinux.net> (raw)
In-Reply-To: <5x8yzr95jh.fsf@kfs2.cua.dk>

Kim F. Storm writes:

 > However, I find some of the new icon a bit confusing, and I
 > notices some minor problems with it.

 I agree entirely. I don't pretend they're all ideal. Some have
 been taken from the Insight debugger by Cygnus/RedHat. I've
 made up the others myself. They're meant to be a starting point
 and I will feed back opinion on this mailing list to the
 graphic designer(s) who might provide new ones.
 
 > After first starting gdb, the first icon I clicked on
 > (to get things going) was the [Go] icon.  It resulted in
 > a the following error:
 > 
 >   gud-format-command: Wrong type argument: stringp, nil
 > 

 I can see the ambiguity. My reasoning was that the gdb command is `run' not
 `go'. And that `go' being the opposite of `stop' gave a reasonable pair of
 icons for the tasks of removing/setting breakpoints.

 > Well, I started the program with the [Run] icon, and now wanted to
 > install a breakpoint in the code... so I clicked on the [Stop] icon.

 Stopping execution is exactly what the Insight debugger uses it for. But I
 didn't. :-)

 > It didn't work, so I did C-c C-z to stop the program...
 >
 > I used C-c C-b to set the breakpoint, and then clicked on [Go]
 > to continue exection...  and it removed the breakpoint.
 >
 > Ok, now a small bell rang, and I took the time to look at the tooltips;
 > [Stop] means "Set Breakpoint" and [Go] means "Clear breakpoint"...  

 I do think that the tooltips should be the first thing to look for with a new
 set of icons.

 > IMO, the [Stop] button should send a stop signal to the process, 

 That sounds sensible.

 > and the [Go] button should do the equivalent of "continue". 

 I prefer the current button for "continue". It seems intuitive and is part of
 a set controlling execution.

 > And then you should add new buttons for Set and Clear breakpoint;
 > I would recommend a "red bullet" (with no text) to set a breakpoint,
 > and the same "red bullet" with an "X" over it to clear the breakpoint.

 This metaphor is a bit lost on me but I have seen it before.

 > Also, most of the icons (except [Run]) should be "shaded" when the
 > program isn't running.  Also, the [Run] tooltip should be changed to
 > "Restart program" when the program is running.

 I don't think this can be done in gud.el. However, I think it can in
 gdb-ui.el in which gdb is started with the command `gdba'. This is the file
 which I've put most work into and has got a lot more new features (like
 breakpoint icons in the margin, stack frames etc).

 > Finally, when the gud buffer exists, the GDB toolbar seems to be used
 > as the default toolbar for modes which uses the default toolbar.
 > That's pretty annoying.

 I don't know what the default toolbar is but I can't get the GDB toolbar in
 any buffer that has gud-minor-mode set to nil. Even a buffer in fundamental
 mode seems to have its own toolbar. Can you explain ?

Nick

  parent reply	other threads:[~2002-11-18  1:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-17 22:48 Problems with new GDB toolbar Kim F. Storm
2002-11-17 22:50 ` Miles Bader
2002-11-18  1:15 ` Nick Roberts [this message]
2002-11-18  2:17   ` Alan Shutko
2002-11-18 18:53     ` Nick Roberts
2002-11-19  2:15       ` Alan Shutko
2002-11-19 18:58         ` Nick Roberts
2002-11-20 21:12         ` Richard Stallman
2002-11-18 19:34     ` Kim F. Storm
2002-11-18 18:57       ` Alan Shutko
2002-11-18 20:10         ` Kim F. Storm
2002-11-19  1:24       ` Miles Bader

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=15832.16198.358673.792906@nick.uklinux.net \
    --to=nick@nick.uklinux.net \
    --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).