Johannes Goslar
2013-03-27 14:52:42 UTC
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
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