File: internal.h

package info (click to toggle)
libfiu 0.90-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 376 kB
  • sloc: ansic: 1,272; makefile: 412; python: 397; sh: 263
file content (27 lines) | stat: -rw-r--r-- 758 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

/* Some libfiu's internal declarations */

#ifndef _INTERNAL_H
#define _INTERNAL_H

/* Recursion count, used both in fiu.c and fiu-rc.c */
extern __thread int rec_count;


/* Gets a stack trace. The pointers are stored in the given buffer, which must
 * be of the given size. The number of entries is returned.
 * It's a wrapper around glibc's backtrace(). */
int get_backtrace(void *buffer, int size);

/* Returns a pointer to the start of the function containing the given code
 * address, or NULL if it can't find any. */
void *get_func_end(void *pc);

/* Returns a pointer to the end of the given function. */
void *get_func_start(void *func);

/* Returns a pointer to the function given by name. */
void *get_func_addr(const char *func_name);

#endif