idc.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:DecLLVM 作者: F8LEFT 项目源码 文件源码
def SetProcessorType (processor, level):
    """
    Change current processor

    @param processor: name of processor in short form.
                      run 'ida ?' to get list of allowed processor types
    @param level: the power of request:
                  - SETPROC_COMPAT - search for the processor type in the current module
                  - SETPROC_ALL    - search for the processor type in all modules
                                     only if there were not calls with SETPROC_USER
                  - SETPROC_USER   - search for the processor type in all modules
                                     and prohibit level SETPROC_USER
                  - SETPROC_FATAL  - can be combined with previous bits.
                                     means that if the processor type can't be
                                     set, IDA should display an error message and exit.
    """
    return idaapi.set_processor_type(processor, level)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号