summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2010-01-19 12:44:05 -0800
committerRoland McGrath <roland@redhat.com>2010-01-19 12:44:05 -0800
commit5d580c21bf940ab8c8006a6efe37eb3fca1d191d (patch)
tree5dbb9974d6d29492ec2b4178c62caa723d139029 /loc2c.c
parent682d5372669bc117cabe1c44a205ad6acca72730 (diff)
downloadsystemtap-steved-5d580c21bf940ab8c8006a6efe37eb3fca1d191d.tar.gz
systemtap-steved-5d580c21bf940ab8c8006a6efe37eb3fca1d191d.tar.xz
systemtap-steved-5d580c21bf940ab8c8006a6efe37eb3fca1d191d.zip
Swap DW_OP_shr and DW_OP_shra.
* loc2c.c (translate): DW_OP_shr is unsigned, DW_OP_shra is signed.
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loc2c.c b/loc2c.c
index 4633e739..818e9e49 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -487,7 +487,7 @@ translate (struct obstack *pool, int indent, Dwarf_Addr addrbias,
BINOP (or, |);
BINOP (plus, +);
BINOP (shl, <<);
- BINOP (shra, >>);
+ BINOP (shr, >>);
BINOP (xor, ^);
/* Comparisons are binary operators too. */
@@ -501,7 +501,7 @@ translate (struct obstack *pool, int indent, Dwarf_Addr addrbias,
#undef UNOP
#undef BINOP
- case DW_OP_shr:
+ case DW_OP_shra:
{
POP (b);
POP (a);