Python idaapi.PLUGIN_KEEP Examples

The following are 2 code examples for showing how to use idaapi.PLUGIN_KEEP(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module idaapi , or try the search function .

Example 1
Project: idawilli   Author: williballenthin   File:    License: Apache License 2.0 5 votes vote down vote up
def init(self):
        self.hooks = CallsHintsHook()
        if self.hooks.hook():
            return idaapi.PLUGIN_KEEP
            logger.warning('error setting hooks.')
            return idaapi.PLUGIN_SKIP 
Example 2
Project: DIE   Author: ynvb   File:    License: MIT License 5 votes vote down vote up
def init(self):
            # For Debugging:
            #self.die_manager = DieManager(is_dbg_log=True, is_dbg_pause=False, is_dbg_profile=True)
            self.die_manager = DieManager()
            return idaapi.PLUGIN_KEEP

        except Exception as ex:
            idaapi.msg("Failed to initialize DIE. {}\n".format(ex))
            del self.die_manager
            idaapi.msg("Errors and fun!\n")
            return idaapi.PLUGIN_SKIP