The change does not change any functionalities. But it allows DW_OP_stack_value preserved in longer location list for future parameter checking. Signed-off-by: Yonghong Song --- dwarf_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwarf_loader.c b/dwarf_loader.c index d538607..2237e20 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -1226,7 +1226,7 @@ static int parameter__reg(Dwarf_Attribute *attr, int expected_reg, struct cu *cu * DW_OP_stack_value instructs interpreter to pop current value from * DWARF expression evaluation stack, and thus is not important here. */ - if (exprlen > 1 && expr[exprlen - 1].atom == DW_OP_stack_value) + if (exprlen == 2 && expr[exprlen - 1].atom == DW_OP_stack_value) exprlen--; if (exprlen != 1) -- 2.47.3