Files
pstrace/framework/dwarf_operations.h
T
nnosov 8251ba526f all code except of pst_function & pst_handler rewritten on C language.
Logger nad Allocator decided to be a global for all library
2020-02-01 15:19:55 +04:00

23 lines
582 B
C

#pragma once
#include <elfutils/libdwfl.h>
#include "common.h"
#include "list_head.h"
#include "sysutils.h"
#include "context.h"
#include "dwarf_stack.h"
typedef struct __dwarf_op_map dwarf_op_map;
typedef bool (*dwarf_operation)(pst_dwarf_stack* stack, const dwarf_op_map* map, Dwarf_Word op1, Dwarf_Word op2);
typedef struct __dwarf_op_map {
int op_num; // DWARF Operation DW_OP_XXX
const char* op_name; // string representation of an operation
dwarf_operation operation; // function which handles operation
} dwarf_op_map;
const dwarf_op_map* find_op_map(int op);