Reputation: 71424
I like emacs's gdb mode a lot better than GDB's command line or TUI modes, but there are some programs that want a "debugger command line" program that it can take and run in an environment it sets up.
I'm wondering if there's a simple way to make emacs pop up in gdb mode using a command line substitute for gdb.
Thanks in advance.
Upvotes: 3
Views: 2417
Reputation: 426
Put this in your .bashrc:
gdbtool () { emacs --eval "(gdb \"gdb --annotate=3 $*\")";}
Then you can run "gdbtool programToDebug"
Source: http://www.inet.net.nz/~nickrob/
Upvotes: 7