python - Changing compiler in IDAPython -


i've been trying use idapython api adjust compiler setting in script, can't seem function work properly. of things i've attempted:

1.

python>setlongprm(inf_compiler, comp_ms) 

this leaves me compiler id set right value, reason sets other compiler related values 0 or similar. giving me error pointer size not being right , int size not being valid value.

2.

python>idaapi.set_compiler_id(2) false 

this straight doesn't work, end same first command.

3.

class compiler_info_t(object):     id = comp_ms     cm = 0x3 | 0x00 | 0x30     size_i = 4     size_b = 1     size_e = 4     defalign = 0     size_s = 2     size_l = 4     size_ll = 8     def __init__(self, *args):         """         __init__(self) -> compiler_info_t         """         = _idaapi.new_compiler_info_t(*args)         try: self.this.append(this)         except: self.this = 

my last attempt try , make own compiler_info_t object pass idaapi.set_compiler(), since "_idaapi" isn't module can import won't let me call new_compiler_info_t().

question: there way to, perhaps, individually set/fix compiler values pointer size, memory model, , calling convention? if not, there different way adjust compiler, analogous how function if changed hand in compiler settings window?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -