Difference between revisions of "C"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
== Debugging == | == Debugging == | ||
− | [[gdb]] can be | + | [[gdb]] -- the GNU Project Debugger -- can be embedded in Emacs. |
+ | |||
+ | While browsing your project's code: | ||
+ | |||
+ | # <code>M-x gdb</code> | ||
+ | # specify gdb parameters. | ||
+ | # use the <code>*gud-xxx*</code> buffer to control the gdb session. | ||
[[Category:Programming languages]] | [[Category:Programming languages]] |
Revision as of 13:05, 27 March 2012
C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories. It is one of the most widely used programming languages of all time. See Wikipedia article.
The default major mode associated with C files (.c and .h) is cc-mode.
Browsing code
Cscope is the de-facto tool for browsing C code. The package is bundled with xscope.el library which enables use of cscope from within Emacs.
Debugging
gdb -- the GNU Project Debugger -- can be embedded in Emacs.
While browsing your project's code:
M-x gdb
- specify gdb parameters.
- use the
*gud-xxx*
buffer to control the gdb session.