fix most of compilation warnings
This commit is contained in:
@@ -32,7 +32,7 @@ bool handle_location(pst_context* ctx, Dwarf_Attribute* attr, pst_dwarf_expr* lo
|
||||
if(dwarf_hasform(attr, DW_FORM_exprloc)) {
|
||||
// Location expression (exprloc class of location in DWARF terms)
|
||||
if(dwarf_getlocation(attr, &expr, &exprlen) == 0) {
|
||||
loc->setup(expr, exprlen);
|
||||
loc->setup(loc, expr, exprlen);
|
||||
ctx->print_expr(ctx, expr, exprlen, attr);
|
||||
ret = stack.calc(&stack, expr, exprlen, attr, fun);
|
||||
}
|
||||
@@ -45,7 +45,7 @@ bool handle_location(pst_context* ctx, Dwarf_Attribute* attr, pst_dwarf_expr* lo
|
||||
for(int i = 0; (off = dwarf_getlocations (attr, off, &base, &start, &end, &expr, &exprlen)) > 0; ++i) {
|
||||
ctx->print_expr(ctx, expr, exprlen, attr);
|
||||
if(offset >= start && offset <= end) {
|
||||
loc->setup(expr, exprlen);
|
||||
loc->setup(loc, expr, exprlen);
|
||||
// actual location, try to calculate Location expression
|
||||
ret = stack.calc(&stack, expr, exprlen, attr, fun);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user