Gdb: graphic (tui) modenicolasb.com.ar 34 pointsnicolasbrailo15 years ago10 commentsSaveHideCopy link On HNComments−jzila15yOr you can use cgdb (http://cgdb.sourceforge.net/), which has syntax highlighting and Vim keybindings.−bluekeybox15yOh my god, thank you. Have used Vim and gdb for two years and didn't know cgdb existed.−jimauthors15yAmazing. Dint know about that!−njs1234515yThere's also gdb-mode for emacs, if you're so inclined: http://emacs-fu.blogspot.com/2009/02/fancy-debugging-with-gd...−erez15yUbuntu/debian has a package called gdbtui which does exactly what gdb -tui does−jpr15yCan't seem to find the package on Ubuntu 10.10, do I need to enable some repository?EDIT: Apparently it was included in the basic gdb package or something.−ludwigvan15yIt is a simple script.cat `which gdbtui`#!/bin/shprog=$(basename $0 tui)dir=$(dirname $0) if [ "$dir" != "." ]; then prog=$dir/$prog fiexec $prog --tui "$@"−chanux15yNot sure if I'm adding value here but gdbtui also works (article mentions gdb -tui).−lallysingh15yThis is a really nice way to debug generated assembly, useful for LLVM hacking.−kaeluka15ymade my day! thanks :)
Comments
Or you can use cgdb (http://cgdb.sourceforge.net/), which has syntax highlighting and Vim keybindings.
Oh my god, thank you. Have used Vim and gdb for two years and didn't know cgdb existed.
Amazing. Dint know about that!
There's also gdb-mode for emacs, if you're so inclined: http://emacs-fu.blogspot.com/2009/02/fancy-debugging-with-gd...
Ubuntu/debian has a package called gdbtui which does exactly what gdb -tui does
Can't seem to find the package on Ubuntu 10.10, do I need to enable some repository?
EDIT: Apparently it was included in the basic gdb package or something.
It is a simple script.
cat `which gdbtui`
#!/bin/sh
prog=$(basename $0 tui)
dir=$(dirname $0) if [ "$dir" != "." ]; then prog=$dir/$prog fi
exec $prog --tui "$@"
Not sure if I'm adding value here but gdbtui also works (article mentions gdb -tui).
This is a really nice way to debug generated assembly, useful for LLVM hacking.
made my day! thanks :)