backtrace management
More...
#include <symbt.hh>
Protected Member Functions |
bool | printBackTrace () const |
| stream out the backtrace, using CL_NOTE_MSG; or do nothing if the backtrace is trivial
|
Private Attributes |
Private * | d |
Detailed Description
backtrace management
Definition at line 42 of file symbt.hh.
Constructor & Destructor Documentation
- Parameters
-
stor | reference to storage object, used for resolving fnc IDs |
Member Function Documentation
int countOccurrencesOfFnc |
( |
int |
fncId | ) |
const |
count occurrences of the given function.
Zero means the function does not occur in the backtrace. Non-zero means the function occurs in the backtrace. Moreover, if the value is more than one, the function has been called recursively.
- Note
- The function is not implemented or used right now, but is going to be as soon as we allow recursion. We need the returned value to distinguish among different instances of the same local variable.
int countOccurrencesOfTopFnc |
( |
| ) |
const |
leave the call of function on top of the backtrace
- Note
- it's safe to ignore the return value
bool printBackTrace |
( |
| ) |
const |
|
protected |
stream out the backtrace, using CL_NOTE_MSG; or do nothing if the backtrace is trivial
- Returns
- true if the backtrace is not trivial
void pushCall |
( |
int |
fncId, |
|
|
const struct cl_loc * |
loc |
|
) |
| |
enter a call of function, thus enlarge the backtrace by one
- Parameters
-
fncId | ID of function, which is being called |
loc | location of the call related to the caller (definitely not location of the called function) |
size of the backtrace, aka call depth
struct cl_loc* topCallLoc |
( |
| ) |
const |
|
read |
return location of call of the topmost function in the backtrace
return the topmost function in the backtrace
Friends And Related Function Documentation
friend class SymExecEngine |
|
friend |
Field Documentation
The documentation for this class was generated from the following file: