python: temporarily comment out skipdata setup, which is still broken on MacOS. #1316
This commit is contained in:
parent
573743919d
commit
06e2b0851d
|
@ -42,18 +42,21 @@ def test_class():
|
|||
# Default "data" instruction's name is ".byte". To rename it to "db", just use
|
||||
# the code below.
|
||||
md.skipdata_setup = ("db", None, None)
|
||||
|
||||
# NOTE: This example ignores SKIPDATA's callback (first None) & user_data (second None)
|
||||
# Can also use dedicated setter
|
||||
md.skipdata_mnem = 'db'
|
||||
#md.skipdata_mnem = 'db'
|
||||
|
||||
# To customize the SKIPDATA callback, use the line below.
|
||||
md.skipdata_setup = (".db", testcb, None)
|
||||
#md.skipdata_setup = (".db", testcb, None)
|
||||
|
||||
# Or use dedicated setter with custom parameter
|
||||
md.skipdata_callback = (testcb, 42)
|
||||
#md.skipdata_callback = (testcb, 42)
|
||||
|
||||
# Or provide just a function
|
||||
md.skipdata_callback = testcb
|
||||
#md.skipdata_callback = testcb
|
||||
# Note that reading this property will always return a tuple
|
||||
assert md.skipdata_callback == (testcb, None)
|
||||
#assert md.skipdata_callback == (testcb, None)
|
||||
|
||||
for insn in md.disasm(code, 0x1000):
|
||||
#bytes = binascii.hexlify(insn.bytes)
|
||||
|
|
Loading…
Reference in New Issue