10 comments

[ 5.2 ms ] story [ 44.1 ms ] thread
This is a really nice way to debug generated assembly, useful for LLVM hacking.
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).