Open thdemarty opened 3 months ago
Hi there and welcome to Qiling. Can you please provide the relevant error message from the logs?
Hello,
Here is the full traceback when executing the program :
[+] Profile: default
Traceback (most recent call last):
File "/home/me/emulation/qiling_emulation.py", line 15, in <module>
ql = Qiling([ELF_FILE_PATH], ROOT_FS_PATH, archtype=QL_ARCH.ARM, ostype=QL_OS.MCU, verbose=QL_VERBOSE.DEBUG)
File "/home/me/emulation/env/lib/python3.10/site-packages/qiling/core.py", line 190, in __init__
self.loader.run()
File "/home/me/emulation/env/lib/python3.10/site-packages/qiling/loader/mcu.py", line 136, in run
self.ql.hook_intr(self.ql.arch.unicorn_exception_handler)
AttributeError: 'QlArchARM' object has no attribute 'unicorn_exception_handler'
'QlArchARM' object has no attribute 'unicorn_exception_handler'
archtype=QL_ARCH.ARM
is not supported for MCU; try archtype=QL_ARCH.CORTEX_M
instead
Describe the bug When attempting to emulate a bare-metal ARM program for Cortex-M using Qiling, the following error occurs:
AttributeError: 'QlArchARM' object has no attribute 'unicorn_exception_handler'.
Sample Code
Expected behavior The Qiling emulator should successfully initialize and run the provided ARM Cortex-M ELF file without raising an
AttributeError
.Screenshots If applicable, add screenshots to help explain your problem.
Additional context
AttributeError: 'QlArchARM' object has no attribute 'unicorn_exception_handler'