Merge pull request #1809 from SPccman/patch-6

Update 20141008 How to debug a C or C++ program with GDB command-line de...
This commit is contained in:
Xingyu.Wang 2014-10-10 20:28:45 +08:00
commit aefcd73c5e

View File

@ -1,3 +1,4 @@
SPccman Translating
How to debug a C/C++ program with GDB command-line debugger
================================================================================
What is the worst part of coding without a debugger? Compiling on your knees praying that nothing will crash? Running the executable with a blood offering? Or just having to write printf("test") at every line hoping to find where the problem is coming from? As you probably know, there are not many advantages to coding without a debugger. But the good side is that debugging on Linux is easy. While most people use the debugger included in their favorite IDE, Linux is famous for its powerful command line C/C++ debugger: GDB. However, like most command line utilities, GDB requires a bit of training to master fully. In this tutorial, I will give you a quick rundown of GDB debugger.
@ -168,4 +169,4 @@ via: http://xmodulo.com/gdb-command-line-debugger.html
[a]:http://xmodulo.com/author/adrien
[1]:https://www.gnu.org/software/gdb/
[2]:http://users.ece.utexas.edu/~adnan/gdb-refcard.pdf
[2]:http://users.ece.utexas.edu/~adnan/gdb-refcard.pdf