Skip to content

Commit

Permalink
Relax assumption on prologue in debuginfotest.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Jan 26, 2023
1 parent 773d799 commit 41f2371
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion substratevm/mx.substratevm/testhello.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,9 @@ def test():
if arch == 'aarch64':
rexp = r"%ssub%ssp, sp, #0x%s"%(wildcard_pattern, spaces_pattern, hex_digits_pattern)
else:
rexp = r"%ssub %s\$0x%s,%%rsp"%(wildcard_pattern, spaces_pattern, hex_digits_pattern)
# the compiler may emit different instructions for the method prologue
# (for example, EE uses -H:+StackOverflowCheckInPrologue by default)
rexp = r"%s(sub %s\$0x%s,%%rsp|lea %s-0x%s\(%%rsp\),%%rbx)"%(wildcard_pattern, spaces_pattern, hex_digits_pattern, spaces_pattern, hex_digits_pattern)
checker = Checker('x/i $pc', rexp)
checker.check(exec_string)

Expand Down

0 comments on commit 41f2371

Please sign in to comment.