libelfin wrapper WIP!
This commit is contained in:
25
libelfin_wrap.h
Normal file
25
libelfin_wrap.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef LIBELFIN_WRAP_H_
|
||||
#define LIBELFIN_WRAP_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define DEBUGUS_EXTERNC extern "C"
|
||||
#else
|
||||
# define DEBUGUS_EXTERNC
|
||||
#endif // __cplusplus
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef struct {
|
||||
ssize_t line;
|
||||
const char *file;
|
||||
uint64_t addr;
|
||||
} AddrInfo;
|
||||
|
||||
DEBUGUS_EXTERNC void libelfin_wrap_init(int fd);
|
||||
DEBUGUS_EXTERNC AddrInfo *libelfin_wrap_info_from_rip(uint64_t rip);
|
||||
DEBUGUS_EXTERNC void libelfin_wrap_free_info(AddrInfo *ai);
|
||||
|
||||
#endif // LIBELFIN_WRAP_H_
|
||||
Reference in New Issue
Block a user