Commit 63a88006 authored by 4ast's avatar 4ast

Merge pull request #469 from goldshtn/usdt-v3

Bug fix around USDT argument handling for constants
parents a6200fbe 4d966bcf
......@@ -204,13 +204,14 @@ class USDTProbeLocation(object):
any_reg = "(" + "|".join(qregs + dregs + wregs + bregs) + ")"
# -4@$0, 8@$1234
m = re.match(r'(\-?)(\d+)@\$(\d+)', arg)
m = re.match(r'(\-?)(\d+)@\$(\-?)(\d+)', arg)
if m is not None:
sign = -1 if len(m.group(3)) > 0 else 1
self.args.append(USDTArgument(
int(m.group(2)),
m.group(1) == '-',
self,
constant=int(m.group(3))
constant=sign*int(m.group(4))
))
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment