View stack information-----
When the program is stopped, the first thing you need to do is to check where the program stops. When your programWhen a function is called, the address, parameters, and local variables in the function are pushed
View stack InformationWhen the program is stopped, the first thing you need to do is to see where the program is parked. When your program calls a function, the address of the function, the function arguments, the local variables within the function
GDB command Overview-------
After starting GDB, you will be brought into the debugging environment of GDB. You can use the gdb command to start debugging the program. The command of GDB can be viewed using the Help Command, as shown
GDB (GNU Debugger) is a powerful command-line debugging tool. You know the power of the command line is that it can form an execution sequence and form a script. The software under UNIX is full of command line, which gives the program development a
Turn from: http://blog.csdn.net/haoahua/article/details/2056854
the original text is from the Chenhao column (http://blog.csdn.net/haoel/), thanks to the author for publishing such a good article.
Debug a program with GDB
Debug the program with
GDB Basic Commands This article describes common commands for using the GDB debugger. Main content: [introduction] [Example] [other] [introduction]=============GDB is a powerful UNIX program debugging tool released by the GNU Open source
1. What is GDB?The GDB full name is GNU Project Debugger, and when the program executes, lets you go inside the other program to view it, or what it is doing when a program crashes.GDB can help you do the following four main aspects to help you
http://www.wuzesheng.com/?p=1327 teaches you to play the GDB (a)--kind: Start gdb start debuggingWritten in the first: GDB is a UNIX-related operating system in C/D program Development is an indispensable tool, its powerful, is not comparable to
GDB Basic CommandsThis article describes common commands for using the GDB debugger.Main content:IntroductionFor exampleOtherIntroduction=============GDB is a powerful UNIX program debugging tool released by the GNU Open source organization. If you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.