diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-06-10 21:40:26 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-06-10 21:40:26 -0400 |
commit | 0b04b78972939b8bf00c6b075b3592ea6b7dd643 (patch) | |
tree | 1dce9fd4b986d1ce4926ba60c9ac182a98c53408 /tools | |
parent | c79637bfce2e90d724ae2d2cebb3d15c39b5a38e (diff) | |
download | seabios-0b04b78972939b8bf00c6b075b3592ea6b7dd643.tar.gz |
checkstack.py should not match pushaw on stack usage check.
Tighten regex so that pushaw doesn't confuse parser.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkstack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checkstack.py b/tools/checkstack.py index 7cc48adb..aa38ea8e 100755 --- a/tools/checkstack.py +++ b/tools/checkstack.py @@ -42,7 +42,7 @@ re_asm = re.compile( + r'):\t.*\t(addr32 )?(?P<insn>.+?)[ ]*((?P<calladdr>' + hex_s + r') <(?P<ref>.*)>)?$') re_usestack = re.compile( - r'^(push.*)|(sub.* [$](?P<num>0x' + hex_s + r'),%esp)$') + r'^(push[f]?[lw])|(sub.* [$](?P<num>0x' + hex_s + r'),%esp)$') def calc(): # funcs[funcaddr] = [funcname, basicstackusage, maxstackusage |