![]() We'll use a trivial merge sort, which operates by dividing an array in half repeatedly and building a new array from the elements of the two halves. We will talk specifically about the following GDB commands:Įvery programming tutorial needs a trivial sample program, and this article uses a recursive program because such programs are particularly good tools to explore what happens on the stack. GDB allows you to see a lot of information related to each function call, such as local variables, who called what, and much more. The commands in this article manipulate stack frames, which represent all the information stored on the stack when one function calls another. ![]() This article shows the tools offered to meet these challenges by the GNU Debugger (GDB), the standard open source debugger for C and C++ programs. They can be caused, for instance, because the caller passes bad arguments or because a function is called when it shouldn't be. Many programming errors turn up when one function calls another.
0 Comments
Leave a Reply. |