Run emacs-gdb from the command line?

I like emacs gdb mode much better than on GDB command line or in TUI modes, but there are some programs that need a debugger command line program that it can execute and run in the environment it installs.

I am wondering if there is an easy way to make emacs appear in gdb mode by replacing the command line for gdb.

Thanks in advance.

+3
source share
1 answer

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/

+7
source

All Articles