You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
960 B
27 lines
960 B
14 years ago
|
#ifndef _PRINTSTACKTRACE_H
|
||
|
#define _PRINTSTACKTRACE_H
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Prints formatted call stack to the user defined buffer,
|
||
|
* always terminating the buffer with 0.
|
||
|
* Uses stack frame to find out the caller function address and
|
||
|
* the map file to find out the function name.
|
||
|
*/
|
||
|
void printStackTrace( char* buffer, int bufferSize, unsigned long stackPtr = 0, unsigned long opPtr = 0 );
|
||
|
|
||
|
|
||
|
#endif // _PRINTSTACKTRACE_H
|
||
|
/*
|
||
|
* Copyright (c) 2001 Jani Kajala
|
||
|
*
|
||
|
* Permission to use, copy, modify, distribute and sell this
|
||
|
* software and its documentation for any purpose is hereby
|
||
|
* granted without fee, provided that the above copyright notice
|
||
|
* appear in all copies and that both that copyright notice and
|
||
|
* this permission notice appear in supporting documentation.
|
||
|
* Jani Kajala makes no representations about the suitability
|
||
|
* of this software for any purpose. It is provided "as is"
|
||
|
* without express or implied warranty.
|
||
|
*/
|