move pst_call_site & pst_parameter to C language and separate them

This commit is contained in:
2020-02-01 17:09:12 +04:00
parent 8251ba526f
commit e27f0c5c18
11 changed files with 978 additions and 804 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
* dwarf_utils.h
*
* Created on: Feb 1, 2020
* Author: nnosov
*/
#ifndef FRAMEWORK_DWARF_UTILS_H_
#define FRAMEWORK_DWARF_UTILS_H_
#include <elfutils/libdw.h>
#include "dwarf_expression.h"
#include "context.h"
#include "sysutils.h"
typedef struct __reginfo {
__reginfo() {
regname[0] = 0;
regno = -1;
}
char regname[32];
int regno;
} reginfo;
int regname_callback (void *arg, int regno, const char *setname, const char *prefix, const char *regname, int bits, int type);
bool handle_location(pst_context* ctx, Dwarf_Attribute* attr, pst_dwarf_expr* loc, Dwarf_Addr pc, pst_function* fun);
#endif /* FRAMEWORK_DWARF_UTILS_H_ */