Getting started with Emacs+GDB debugging
Submitted by Bob Spencer, updated on 5 Aug 2009 - 0 comments
This page shows the basic steps to start debugging in emacs with gdb.
For more information, google: emacs gdb tutorial
Prepare your source
Compile your code with debugging symbols as described here.
Install gdb and emacs
| Moblin/Fedora |
# yum install gdb emacs |
| Ubuntu |
# apt-get install gdb emacs |
Load source and start gdb
Open a source file in emacs. Start gdb. Use standard gdb commands to walk through the code.
# open a file in emacs
C-x f <file>
# start gdb in emacs
M-x gdb- Printer-friendly version
- Login or register to post comments
