fix most of compilation warnings
This commit is contained in:
+12
-11
@@ -20,17 +20,16 @@
|
||||
typedef struct __pst_function {
|
||||
list_node node; // uplink. !!! must be first !!!
|
||||
|
||||
void clear(pst_function* fn);
|
||||
pst_parameter* add_param(pst_function* fn);
|
||||
void del_param(pst_function* fn, pst_parameter* p);
|
||||
pst_parameter* next_param(pst_function* fn, pst_parameter* p);
|
||||
void (*clear) (pst_function* fn);
|
||||
pst_parameter* (*add_param) (pst_function* fn);
|
||||
void (*del_param) (pst_parameter* p);
|
||||
pst_parameter* (*next_param) (pst_function* fn, pst_parameter* p);
|
||||
|
||||
bool unwind(pst_function* fn, Dwarf_Addr addr);
|
||||
bool handle_dwarf(pst_function* fn, Dwarf_Die* d);
|
||||
bool print_dwarf(pst_function* fn);
|
||||
bool handle_lexical_block(pst_function* fn, Dwarf_Die* result);
|
||||
|
||||
bool get_frame(pst_function* fn);
|
||||
bool (*unwind) (pst_function* fn, Dwarf_Addr addr);
|
||||
bool (*handle_dwarf) (pst_function* fn, Dwarf_Die* d);
|
||||
bool (*print_dwarf) (pst_function* fn);
|
||||
bool (*handle_lexical_block) (pst_function* fn, Dwarf_Die* result);
|
||||
bool (*get_frame) (pst_function* fn);
|
||||
|
||||
Dwarf_Addr lowpc; // offset to start of the function against base address
|
||||
Dwarf_Addr highpc; // offset to the next address after the end of the function against base address
|
||||
@@ -50,6 +49,8 @@ typedef struct __pst_function {
|
||||
pst_context* ctx; // context of unwinding
|
||||
bool allocated; // whether this object was allocated or not
|
||||
} pst_function;
|
||||
|
||||
void pst_function_init(pst_function* fn, pst_context* _ctx, __pst_function* _parent);
|
||||
void pst_function_fini(pst_function* fn);
|
||||
pst_function* pst_function_new(pst_context* _ctx, __pst_function* _parent);
|
||||
|
||||
#endif /* FRAMEWORK_DWARF_FUNCTION_H_ */
|
||||
|
||||
Reference in New Issue
Block a user