home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / include / os2 / dumpstck.h < prev    next >
C/C++ Source or Header  |  1997-04-02  |  2KB  |  39 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*  IBM Change History (most recent first):                         */
  13. /*  138559 09/27/95 CED  First checked in                           */
  14. /*                                                                  */
  15. /*  File:    DumpStck.h                                             */
  16. /*                                                                  */
  17. /*  Contains:  Function prototype for DumpStack                     */
  18. /********************************************************************/
  19.  
  20. //=====================================================================================
  21. // Theory of Operation
  22. //=====================================================================================
  23.  
  24. /*
  25.  
  26.  Call DumpStack to output a dump of the call stack.  For those stack frames where
  27.  symbolic information is available from the module executable file, (i.e. the 
  28.  module was compiled with /Ti flag), the procedure name for that stack frame will 
  29.  be displayed.  Output is displayed using somPrintf.  
  30.  
  31.  start specifies the stack frame to start dumping (i.e. the number of frames
  32.  to skip).
  33.  
  34.  depth specifies the number of frames to dump (not counting skipped frames).
  35.  
  36. */
  37.  
  38. extern "C" void DumpStack(long start, long depth);
  39.