unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Toggle view in gdba
@ 2004-10-17 15:24 Masatake YAMATO
  2004-10-18  1:49 ` Nick Roberts
  0 siblings, 1 reply; 9+ messages in thread
From: Masatake YAMATO @ 2004-10-17 15:24 UTC (permalink / raw)


Is there any strong reason that gdba doesn't provides keyboard 
interface for the its great functions?

2004-10-18  Masatake YAMATO  <jet@gyve.org>

	* progmodes/gdb-ui.el (gdb-ann3): Define a key which toggles
	source view and assembler view.

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	17 Oct 2004 15:23:05 -0000
@@ -169,6 +169,14 @@
 			  (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)))
+	   "t" "Toggle source and assembler view.")
+			     
 
   (define-key gud-minor-mode-map [left-margin mouse-1]
     'gdb-mouse-toggle-breakpoint)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-24 20:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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