DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
adb: absolute debugger

Displaying the C stack backtrace

To trace the path of all active functions, use the $c command. The command lists the names of all functions that have been called but have not yet returned control, as well as the address from which each function was called, and the arguments passed to it.

For example, the following command displays a backtrace of the C language functions called:

   $c
By default, the $c command displays all calls. To display a specific amount, supply a count of the number of calls required. For example, the following command displays up to 25 calls in the current call path:
   ,25$c


NOTE: Function calls and arguments are put on the stack after the function has been called. By setting breakpoints at the entry point to a function, the function will not appear in the list generated by the $c command. To remedy this, place breakpoints a few instructions into the function.


Next topic: Displaying CPU registers
Previous topic: Deleting breakpoints

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003