def out(self):
""" Output instruction in textform. """
buf = idaapi.init_output_buffer(1024)
if self.cmd.auxpref & self.FLo_PluginCall:
lib,_ = self.get_string(self.cmd[0].addr)
fn,_ = self.get_string(self.cmd[1].addr)
lib = ntpath.splitext(ntpath.basename(lib))[0]
out_line('{}::{}'.format(lib, fn), COLOR_INSN)
OutChar(' ')
out_one_operand(2)
else:
OutMnem(12)
for i, op in ((i, self.cmd[i]) for i in range(6)):
if op.type == o_void:
break
if i > 0:
out_symbol(',')
OutChar(' ')
out_one_operand(i)
term_output_buffer()
cvar.gl_comm = 1
MakeLine(buf)
评论列表
文章目录