vds6

summary: superficially modify the decompilation output

description:

modifies the decompilation output in a superficial manner, by removing some white spaces

Note: this is rather crude, not quite “pythonic” code.

level: intermediate

Attributes

do_dbg

Classes

vds6_hooks_t

my_plugin_t

Base class for all scripted plugins.

Functions

dbg(msg)

is_cident_char(c)

my_tag_skipcodes(l, storage)

remove_spaces(sl)

PLUGIN_ENTRY()

Module Contents

vds6.do_dbg = False
vds6.dbg(msg)
vds6.is_cident_char(c)
vds6.my_tag_skipcodes(l, storage)
vds6.remove_spaces(sl)
class vds6.vds6_hooks_t(_flags: int = 0, _hkcb_flags: int = 1)

Bases: ida_hexrays.Hexrays_Hooks

func_printed(cfunc)

Function text has been generated. Plugins may modify the text in cfunc_t::sv. However, it is too late to modify the ctree or microcode. The text uses regular color codes (see lines.hpp) COLOR_ADDR is used to store pointers to ctree items.

Parameters:

cfunc – (cfunc_t *)

class vds6.my_plugin_t

Bases: ida_idaapi.plugin_t

Base class for all scripted plugins.

flags = 16
wanted_name = 'Hex-Rays space remover (IDAPython)'
wanted_hotkey = ''
comment = 'Sample plugin6 for Hex-Rays decompiler'
help = ''
init()
term()
run(arg)
vds6.PLUGIN_ENTRY()