summaryrefslogtreecommitdiff
path: root/suite
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2021-04-22 12:54:53 +0800
committerXusheng <xusheng@vector35.com>2021-04-22 13:32:42 +0800
commitf3596af24b9ca5705cba677b6aff11d72ed7abf4 (patch)
treec1b153931426966287d64b0f4ccd85cc86e0a90e /suite
parentc4b1dd712783e7474570705e6d95183a0c02a76e (diff)
fix Python search API
Diffstat (limited to 'suite')
-rw-r--r--suite/testcommon.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/suite/testcommon.py b/suite/testcommon.py
index 48eeccab..95c10f85 100644
--- a/suite/testcommon.py
+++ b/suite/testcommon.py
@@ -1110,7 +1110,7 @@ class TestBuilder(Builder):
line %s' % (addr, match, line))
for addr, line in bv.find_all_constant(bv.start, bv.end, 0x58):
- retinfo.append('constant 0x58 is found at address 0x%lx with line' %\
+ retinfo.append('constant 0x58 is found at address 0x%lx with line %s' %\
(addr, line))
def data_callback(addr, match):
@@ -1123,8 +1123,8 @@ class TestBuilder(Builder):
retinfo.append('match found at address: 0x%lx with string %s, line %s' %\
(addr, match, line))
- bv.find_all_text(bv.start, bv.end, 'test', None, FindFlag.FindCaseSensitive, None,
- string_callback)
+ bv.find_all_text(bv.start, bv.end, 'test', None, FindFlag.FindCaseSensitive,
+ FunctionGraphType.NormalFunctionGraph, None, string_callback)
def constant_callback(addr, line):
retinfo.append('match found at address: 0x%lx with constant 0x58, line %s'\