Chapter 4

Traveling About the Stack

In This Chapter

arrow Moving about the stack

arrow How local variables are stored

arrow Viewing threads

arrow Tracing through assembly code

arrow Viewing memory

Debuggers can be powerful things. They can leap tall computer applications in a single bound and see through them to find all their flaws. The more you know about these little debuggers, the more you can put them to use. In this chapter, we show you how to move about the stack and make use of advanced debugger features.

Stacking Your Data

A stack is a common thing in the computer world. We have stacks of bills and stacks of paychecks and stacks of data. The stacks of data are interesting because, unlike bills and paychecks, they live inside the computer’s memory. But the stack metaphor is appropriate. When the operating system runs an application, it gives that application a stack, which is simply a big chunk of memory. But the data is stored just like a stack of cards: With a stack of real cards, you can put a card ...

Get C++ All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.