本文整理匯總了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
# -----------------------------------------------------------------------