From 0b04b78972939b8bf00c6b075b3592ea6b7dd643 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 10 Jun 2009 21:40:26 -0400 Subject: [PATCH] checkstack.py should not match pushaw on stack usage check. Tighten regex so that pushaw doesn't confuse parser. --- tools/checkstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkstack.py b/tools/checkstack.py index 7cc48ad..aa38ea8 100755 --- a/tools/checkstack.py +++ b/tools/checkstack.py @@ -42,7 +42,7 @@ re_asm = re.compile( + r'):\t.*\t(addr32 )?(?P.+?)[ ]*((?P' + hex_s + r') <(?P.*)>)?$') re_usestack = re.compile( - r'^(push.*)|(sub.* [$](?P0x' + hex_s + r'),%esp)$') + r'^(push[f]?[lw])|(sub.* [$](?P0x' + hex_s + r'),%esp)$') def calc(): # funcs[funcaddr] = [funcname, basicstackusage, maxstackusage -- 2.25.1