pst_parameter: do not return failure if location expression calculation

failed, because it don't allow to add parameter to function
This commit is contained in:
2020-02-02 15:53:16 +04:00
parent cfb9ac91c8
commit b79db14d0c
-1
View File
@@ -204,7 +204,6 @@ bool param_handle_dwarf(pst_parameter* param, Dwarf_Die* result, pst_function* f
param->has_value = true; param->has_value = true;
} else { } else {
pst_log(SEVERITY_ERROR, "Failed to calculate DW_AT_location expression: %s", param->ctx->buff); pst_log(SEVERITY_ERROR, "Failed to calculate DW_AT_location expression: %s", param->ctx->buff);
return false;
} }
} else if(dwarf_hasattr(result, DW_AT_const_value)) { } else if(dwarf_hasattr(result, DW_AT_const_value)) {
// no locations definitions, value is constant, known by DWARF directly // no locations definitions, value is constant, known by DWARF directly