News for hackers. Stuff that matters.
Re:GDB 7.11 released by prewett on Wednesday February 24, 2016 @03:16PM (#11169880)
Ha! It's nothing like Visual Studio. GIMP is closer to Photoshop than Emacs + GUD/GDB is to Visual Studio.

However, I do use Emacs with GUD and it works okay. If you are addicted to VI-style editing (like myself), you can use viper.

You'll want to add some keybinding to your .emacs. The following are the VS6 bindings I use:

;; Add VisualStudio-style debugging keys

;; Add convenient "until" command to gdb mode (swiped off the web)

(add-hook `gdb-mode-hook

        (lambda ()

         (gud-def gud-until "until %f:%l" "C-u" "Execute until current line.")))

;; Add a "jump" command (supposed to have been included in gud.el)

(add-hook `gdb-mode-hook

        (lambda ()

         (gud-def gud-jump "tbreak %f:%l\njump %f:%l" "\C-j" "Relocate next instruction to line at point in source buffer.")))

(global-set-key [f9] 'gud-break)

(global-set-key [f11] 'gud-step)

(global-set-key [f10] 'gud-next)

(global-set-key [f5] 'gud-cont)

(global-set-key [\S-f11] 'gud-finish)

(global-set-key [\C-f10] 'gud-until)

(global-set-key [\C-\S-f10] 'gud-jump) ; Equivalent to VC's Set Next Statement

Re:GDB 7.11 released by benaiah on Wednesday February 24, 2016 @06:39PM (#11171156)
These days evil is the goto vim-keybinding package - viper is unmaintained IIRC and hasn't been for some time, and evil works tremendously well.