[英]Writing plugin : IDA Pro crashes when I launch a thread
当我尝试将线程启动到run方法时,IDA专业人士摇摇欲坠,知道吗?
在ida中运行线程有一些限制吗? 因为我在文档中什么都没找到,所以写了ida插件 。
import idaapi
from threading import Thread
import time
class Listener(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
time.sleep(3)
class myplugin_t(idaapi.plugin_t):
flags = idaapi.PLUGIN_UNL
def init(self):
return idaapi.PLUGIN_OK
def run(self, arg):
t1 = Listener();
t1.start();
t1.join();
def term(self):
pass
def PLUGIN_ENTRY():
return myplugin_t()
PS:当我用C ++编写插件时,发现了相同的问题
在python中,您可以使用
thread.start_new_thread(functionname, ()) # the second arguments is for args
在ida专业版中有效。
对于C ++,任何ida吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.