本文整理汇总了Python中idaapi.AST_ENABLE_ALWAYS属性的典型用法代码示例。如果您正苦于以下问题:Python idaapi.AST_ENABLE_ALWAYS属性的具体用法?Python idaapi.AST_ENABLE_ALWAYS怎么用?Python idaapi.AST_ENABLE_ALWAYS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类idaapi
的用法示例。
在下文中一共展示了idaapi.AST_ENABLE_ALWAYS属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
示例2: update
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
# ------------------------------------------------------------
# DECOMPILED VIEW -- POP-UP HANDLERS
# ------------------------------------------------------------
示例3: add_menus
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def add_menus(self):
# To avoid creating multiple plugin_t instances
this = self
class StartHandler(idaapi.action_handler_t):
def __init__(self):
idaapi.action_handler_t.__init__(self)
def activate(self, ctx):
this.run()
return 1
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
act_name = '%s:start' % PLUGNAME
act_desc = idaapi.action_desc_t(
act_name, # The action name. Must be unique
PLUGNAME, # Action Text
StartHandler(), # Action handler
None, # Optional shortcut
'Start plugin', # Action tooltip
122 # Icon
)
idaapi.register_action(act_desc)
idaapi.attach_action_to_menu(
'Debugger/Debugger windows/',
act_name,
idaapi.SETMENU_APP
)
示例4: update
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
#-------------------------------------------------------------------------------
示例5: update
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def update(self, ctx):
"""
Ensure the context menu is always available in IDA.
"""
return idaapi.AST_ENABLE_ALWAYS
#------------------------------------------------------------------------------
# Plugin Util
#------------------------------------------------------------------------------
示例6: generic_handler
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def generic_handler(callback):
class Handler(idaapi.action_handler_t):
def __init__(self):
idaapi.action_handler_t.__init__(self)
def activate(self, ctx):
callback()
return 1
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
return Handler()
示例7: update
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
# ------------------------------------------------------------------------------
示例8: update
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def update(self, ctx):
try:
if ctx.form_type == idaapi.BWN_DISASM:
return idaapi.AST_ENABLE_FOR_FORM
else:
return idaapi.AST_DISABLE_FOR_FORM
except:
# Add exception for main menu on >= IDA 7.0
return idaapi.AST_ENABLE_ALWAYS
# context menu for Fix idb
示例9: update
# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import AST_ENABLE_ALWAYS [as 别名]
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
# -----------------------------------------------------------------------