mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
dwarf: Fix the order of the operands to the relational operators
dwarf_eval_expr are reversed compared with the DWARF spec.
This commit is contained in:
parent
10b064ffe9
commit
679b65cd22
1 changed files with 6 additions and 6 deletions
|
@ -574,42 +574,42 @@ do { \
|
|||
Debug (15, "OP_le\n");
|
||||
tmp1 = pop ();
|
||||
tmp2 = pop ();
|
||||
push (sword (as, tmp1) <= sword (as, tmp2));
|
||||
push (sword (as, tmp2) <= sword (as, tmp1));
|
||||
break;
|
||||
|
||||
case DW_OP_ge:
|
||||
Debug (15, "OP_ge\n");
|
||||
tmp1 = pop ();
|
||||
tmp2 = pop ();
|
||||
push (sword (as, tmp1) >= sword (as, tmp2));
|
||||
push (sword (as, tmp2) >= sword (as, tmp1));
|
||||
break;
|
||||
|
||||
case DW_OP_eq:
|
||||
Debug (15, "OP_eq\n");
|
||||
tmp1 = pop ();
|
||||
tmp2 = pop ();
|
||||
push (sword (as, tmp1) == sword (as, tmp2));
|
||||
push (sword (as, tmp2) == sword (as, tmp1));
|
||||
break;
|
||||
|
||||
case DW_OP_lt:
|
||||
Debug (15, "OP_lt\n");
|
||||
tmp1 = pop ();
|
||||
tmp2 = pop ();
|
||||
push (sword (as, tmp1) < sword (as, tmp2));
|
||||
push (sword (as, tmp2) < sword (as, tmp1));
|
||||
break;
|
||||
|
||||
case DW_OP_gt:
|
||||
Debug (15, "OP_gt\n");
|
||||
tmp1 = pop ();
|
||||
tmp2 = pop ();
|
||||
push (sword (as, tmp1) > sword (as, tmp2));
|
||||
push (sword (as, tmp2) > sword (as, tmp1));
|
||||
break;
|
||||
|
||||
case DW_OP_ne:
|
||||
Debug (15, "OP_ne\n");
|
||||
tmp1 = pop ();
|
||||
tmp2 = pop ();
|
||||
push (sword (as, tmp1) != sword (as, tmp2));
|
||||
push (sword (as, tmp2) != sword (as, tmp1));
|
||||
break;
|
||||
|
||||
case DW_OP_skip:
|
||||
|
|
Loading…
Reference in a new issue