Stack Trace: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 37:
Note that the above code requires a NULL return address, and GDB backtracing requires a NULL %ebp, to know when to stop. Otherwise the traces will run off into garbage. To account for this, set up a NULL stack frame before you jump to your C entry point:
<source lang="asm">
; Walks backwards through the call stack and builds a list of return addresses.
; Args:
|