Discussion:
[ECB-list] Dedicated GDB windows
Johannes Goslar
2013-03-27 14:52:42 UTC
Permalink
Hi,
I am trying to create a gdb layout for ecb which worked well so far via the graphical way.
The buffers are configured with:
(require 'ecb)

(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-gud-buffer "*gud*" nil "gdb-gud"
(switch-to-buffer gud-comint-buffer)
(set-window-dedicated-p (selected-window) nil))

(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-io-buffer "*input/output of *" nil "gdb-io"
(switch-to-buffer (gdb-get-buffer-create 'gdb-inferior-io))
(set-window-dedicated-p (selected-window) nil))

(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-disas-buffer "*disassembly of *" nil "gdb-disas"
(switch-to-buffer (gdb-get-buffer-create 'gdb-disassembly-buffer))
(set-window-dedicated-p (selected-window) nil))

(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-vars-buffer "*locals of *" nil "gdb-vars"
(switch-to-buffer (gdb-get-buffer-create 'gdb-locals-buffer))
(set-window-dedicated-p (selected-window) nil))

(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-breaks-buffer "*breakpoints of *" nil "gdb-breaks"
(switch-to-buffer (gdb-get-buffer-create 'gdb-breakpoints-buffer))
(set-window-dedicated-p (selected-window) nil))

(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-stack-buffer "*stack frames of *" nil "gdb-stacks"
(switch-to-buffer (gdb-get-buffer-create 'gdb-stack-buffer))
(set-window-dedicated-p (selected-window) nil))

(defun ecb-mps-activate ()
(interactive)
(gdb "arm-none-eabi-gdb -i=mi")
(find-file "~/.emacs")
(ecb-layout-switch "jg-arm")
(ecb-activate))

(provide 'ecb-mps)

Contents are displayed right, but when a new window is created it only works when no gud action was done. After a "step" helm is not splitting the main edit window, but taking a gdb window.
Is there a way to prevent this?

Kind Regards
Johannes Goslar
John Yates
2013-03-27 17:46:04 UTC
Permalink
Wow! It had not occurred to me to use ecb in this fashion. If you do
get the kinks worked out can you post more complete details. I think
many developers would appreciate.

/john

On Wed, Mar 27, 2013 at 10:52 AM, Johannes Goslar
Post by Johannes Goslar
Hi,
I am trying to create a gdb layout for ecb which worked well so far via the graphical way.
(require 'ecb)
(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-gud-buffer "*gud*" nil "gdb-gud"
(switch-to-buffer gud-comint-buffer)
(set-window-dedicated-p (selected-window) nil))
(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-io-buffer "*input/output of *" nil "gdb-io"
(switch-to-buffer (gdb-get-buffer-create 'gdb-inferior-io))
(set-window-dedicated-p (selected-window) nil))
(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-disas-buffer "*disassembly of *" nil "gdb-disas"
(switch-to-buffer (gdb-get-buffer-create 'gdb-disassembly-buffer))
(set-window-dedicated-p (selected-window) nil))
(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-vars-buffer "*locals of *" nil "gdb-vars"
(switch-to-buffer (gdb-get-buffer-create 'gdb-locals-buffer))
(set-window-dedicated-p (selected-window) nil))
(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-breaks-buffer "*breakpoints of *" nil "gdb-breaks"
(switch-to-buffer (gdb-get-buffer-create 'gdb-breakpoints-buffer))
(set-window-dedicated-p (selected-window) nil))
(defecb-window-dedicator-to-ecb-buffer ecb-set-gdb-stack-buffer "*stack frames of *" nil "gdb-stacks"
(switch-to-buffer (gdb-get-buffer-create 'gdb-stack-buffer))
(set-window-dedicated-p (selected-window) nil))
(defun ecb-mps-activate ()
(interactive)
(gdb "arm-none-eabi-gdb -i=mi")
(find-file "~/.emacs")
(ecb-layout-switch "jg-arm")
(ecb-activate))
(provide 'ecb-mps)
Contents are displayed right, but when a new window is created it only works when no gud action was done. After a "step" helm is not splitting the main edit window, but taking a gdb window.
Is there a way to prevent this?
Kind Regards
Johannes Goslar
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Ecb-list mailing list
https://lists.sourceforge.net/lists/listinfo/ecb-list
Loading...