fieker-DuValspielwiese
Last change
on this file since be7466 was
be7466,
checked in by Olaf Bachmann <obachman@…>, 24 years ago
|
update
git-svn-id: file:///usr/local/Singular/svn/trunk@4421 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
976 bytes
|
Line | |
---|
1 | /******************************************************************* |
---|
2 | * File: omTrack.h |
---|
3 | * Purpose: declaration routines for getting Backtraces of stack |
---|
4 | * Author: obachman (Olaf Bachmann) |
---|
5 | * Created: 11/99 |
---|
6 | * Version: $Id: omTrack.h,v 1.2 2000-05-31 13:34:33 obachman Exp $ |
---|
7 | *******************************************************************/ |
---|
8 | #ifndef OM_TRACK_H |
---|
9 | #define OM_TRACK_H |
---|
10 | |
---|
11 | #include <stdio.h> |
---|
12 | |
---|
13 | /* writes into void** up to max_frames return addresses of current stack, |
---|
14 | excludes addr of this function, returns count of addr actually |
---|
15 | determined */ |
---|
16 | int omGetCurrentBackTrace(void** addr, int max_frames); |
---|
17 | /* prints max_frames addreses, translated by addr2line to fd */ |
---|
18 | int omPrintBackTrace(void** addr, int max_frames, FILE* fd); |
---|
19 | /* prints current back trace */ |
---|
20 | int omPrintCurrentBackTrace(int from_frame, int max_frames, FILE *fd); |
---|
21 | /* needs to be called from main with argv[0] as argument */ |
---|
22 | void omInitTrack(const char* argv0); |
---|
23 | |
---|
24 | #endif /* OM_TRACK_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.