tools/checkstack.pl: handle the <stmdb> instruct properly

Change-Id: Id34b04134c7bd164598da52c682fd0b7711415f2
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-09-02 23:55:11 +08:00
committed by anchao
parent 1d52c08bdd
commit 3478386698
+1 -1
View File
@@ -123,7 +123,7 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
# e.g. c01f0d48: e92ddff0 push {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
#
sub arm_push_handling {
my $regex = qr/.*push.*}/o;
my $regex = qr/.*(?:push.*}|stmdb.*sp.*}).*/o;
my $size = 0;
my $line_arg = shift;