better printing of parameters. export access to parameter's children

This commit is contained in:
2020-04-22 13:05:04 +04:00
parent e5531f9986
commit 39f34d7814
6 changed files with 145 additions and 91 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ typedef enum {
typedef struct {
char* name; ///< parameter's name
char* type_name; ///< name of parameter's type in case of 'PARAM_TYPE_TYPEDEF'
char* type_name; ///< name of parameter's type
uint32_t line; ///< line of parameter definition
unw_word_t size; ///< size of parameter in bits
unw_word_t value; ///< value of parameter. use 'size' to determine number of actual bits of 'value'
+10 -2
View File
@@ -65,7 +65,7 @@ const char* pst_print_simple(pst_handler* handler);
* @param current pointer to current function. NULL to get first
* @return pointer to next function's handle, NULL in case of end of list
*/
const pst_function* pst_get_next_function(pst_handler* handler, pst_function* current);
const pst_function* pst_function_next(pst_handler* handler, pst_function* current);
/**
* @brief Get function's information (name, address, line)
@@ -80,7 +80,15 @@ const pst_function_info* pst_get_function_info(pst_function* function);
* @param current pointer to current parameter. NULL to get first
* @return pointer to next parameter's handle, NULL in case of end of list
*/
const pst_parameter* pst_get_next_parameter(pst_function* function, pst_parameter* current);
const pst_parameter* pst_parameter_next(pst_function* function, pst_parameter* current);
/**
* @brief Get next parameter's children parameter (for composite types)
* @param parent parent parameter's handler obtained by pst_get_next_parameter()
* @param current pointer to current child parameter. NULL to get first
* @return pointer to next parameter's handle, NULL in case of end of list
*/
const pst_parameter* pst_parameter_next_child(pst_parameter* parent, pst_parameter* current);
/**
* @brief Get parameter's information (name, type, line etc)