all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Cc: emacs-devel@gnu.org
Subject: Re: Toggle view in gdba
Date: Tue, 19 Oct 2004 11:05:17 +0900 (JST)	[thread overview]
Message-ID: <20041019.110517.30163083.jet@gyve.org> (raw)
In-Reply-To: <16755.8502.222021.520656@farnswood.snap.net.nz>

> It can currently be toggled from the menubar but providing a keyboard
> interface can only help. However, it needs a different keybinding e.g 
> `C-c C-something':
> 
>    * The key sequences bound in a major mode keymap should usually
>      start with `C-c', followed by a control character, a digit, or `{',
>      `}', `<', `>', `:' or `;'.  The other punctuation characters are
>      reserved for minor modes, and ordinary letters are reserved for
>      users.
> 
> Nick

How about next patch?
\C-c\C-v is used as a prefix key view and display switch commands.

Masatake YAMATO

Index: lisp/progmodes/gdb-ui.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/gdb-ui.el,v
retrieving revision 1.24
diff -u -r1.24 gdb-ui.el
--- lisp/progmodes/gdb-ui.el	6 Oct 2004 07:20:53 -0000	1.24
+++ lisp/progmodes/gdb-ui.el	19 Oct 2004 02:06:25 -0000
@@ -169,7 +169,28 @@
 			  (forward-char 2)
 			  (gud-call "until *%a" arg)))
 	   "\C-u" "Continue to current line or address.")
-
+  ;;
+  (gud-def gud-toggle-view (cond
+			    ((eq gdb-selected-view 'assembler)
+			     (gdb-view-source-function))
+			    ((eq gdb-selected-view 'source)
+			     (gdb-view-assembler)))
+	   "\C-v\C-v" "Toggle source and assembler view.")
+  (gud-def gud-display-gdb-buffer (gdb-display-gdb-buffer)
+	   "\C-vg" "Display GUD buffer.")    
+  (gud-def gud-display-assembler-buffer (gdb-display-assembler-buffer)
+	   "\C-va" "Display disassembly view.")
+  (gud-def gud-display-threads-buffer (gdb-display-threads-buffer)
+	   "\C-vt" "Display IDs of currently known threads.")
+  (gud-def gud-display-registers-buffer (gdb-display-registers-buffer)
+	   "\C-vr" "Display integer register contents.")
+  (gud-def gud-display-locals-buffer (gdb-display-locals-buffer)
+	   "\C-vl" "Display local variables of current stack and their values.")
+  (gud-def gud-display-stack-buffer (gdb-display-stack-buffer)
+	   "\C-vs" "Display backtrace of current stack.")
+  (gud-def gud-display-breakpoints-buffer (gdb-display-breakpoints-buffer)
+	   "\C-vb" "Display status of user-settable breakpoints.")
+			     
   (define-key gud-minor-mode-map [left-margin mouse-1]
     'gdb-mouse-toggle-breakpoint)
   (define-key gud-minor-mode-map [left-fringe mouse-1]

  reply	other threads:[~2004-10-19  2:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-17 15:24 Toggle view in gdba Masatake YAMATO
2004-10-18  1:49 ` Nick Roberts
2004-10-19  2:05   ` Masatake YAMATO [this message]
2004-10-19 11:00     ` Nick Roberts
2004-10-19 16:21       ` Masatake YAMATO
2004-10-23  8:01         ` Masatake YAMATO
2004-10-23 14:24           ` Stefan
2004-10-23 21:57             ` Nick Roberts
2004-10-24 20:38           ` 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

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

  git send-email \
    --in-reply-to=20041019.110517.30163083.jet@gyve.org \
    --to=jet@gyve.org \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.