IDAPython 9.0
|
Proxy of C++ outctx_base_t class.
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
"bool" | only_main_line (self) |
only_main_line(self) -> bool | |
"bool" | multiline (self) |
multiline(self) -> bool | |
"bool" | force_code (self) |
force_code(self) -> bool | |
"bool" | stack_view (self) |
stack_view(self) -> bool | |
"bool" | display_voids (self) |
display_voids(self) -> bool | |
"void" | set_gen_xrefs (self, "bool" on=True) |
set_gen_xrefs(self, on=True) | |
"void" | set_gen_cmt (self, "bool" on=True) |
set_gen_cmt(self, on=True) | |
"void" | clr_gen_label (self) |
clr_gen_label(self) | |
"void" | set_gen_label (self) |
set_gen_label(self) | |
"void" | set_gen_demangled_label (self) |
set_gen_demangled_label(self) | |
"void" | set_comment_addr (self, "ea_t" ea) |
set_comment_addr(self, ea) | |
"void" | set_dlbind_opnd (self) |
set_dlbind_opnd(self) | |
"bool" | print_label_now (self) |
print_label_now(self) -> bool | |
"int" | forbid_annotations (self) |
forbid_annotations(self) -> int | |
"void" | restore_ctxflags (self, "int" saved_flags) |
restore_ctxflags(self, saved_flags) | |
"size_t" | out_printf (self, "char const *" format) |
out_printf(self, format) -> size_t Functions to append text to the current output buffer (outbuf) Append a formatted string to the output string. | |
"flags64_t" | out_value (self, "op_t" x, "int" outf=0) |
out_value(self, x, outf=0) -> flags64_t Output immediate value. | |
"void" | out_symbol (self, "char" c) |
out_symbol(self, c) Output a character with COLOR_SYMBOL color. | |
"void" | out_chars (self, "char" c, "int" n) |
out_chars(self, c, n) Append a character multiple times. | |
"void" | out_spaces (self, "ssize_t" len) |
out_spaces(self, len) Appends spaces to outbuf until its tag_strlen becomes 'len'. | |
"void" | out_line (self, "char const *" str, "color_t" color=0) |
out_line(self, str, color=0) Output a string with the specified color. | |
"void" | out_keyword (self, "char const *" str) |
out_keyword(self, str) Output a string with COLOR_KEYWORD color. | |
"void" | out_register (self, "char const *" str) |
out_register(self, str) Output a character with COLOR_REG color. | |
"void" | out_tagon (self, "color_t" tag) |
out_tagon(self, tag) Output "turn color on" escape sequence. | |
"void" | out_tagoff (self, "color_t" tag) |
out_tagoff(self, tag) Output "turn color off" escape sequence. | |
"void" | out_addr_tag (self, "ea_t" ea) |
out_addr_tag(self, ea) Output "address" escape sequence. | |
"void" | out_colored_register_line (self, "char const *" str) |
out_colored_register_line(self, str) Output a colored line with register names in it. | |
"void" | out_char (self, "char" c) |
out_char(self, c) Output one character. | |
"void" | out_btoa (self, "uval_t" Word, "char" radix=0) |
out_btoa(self, Word, radix=0) Output a number with the specified base (binary, octal, decimal, hex) The number is output without color codes. | |
"void" | out_long (self, "sval_t" v, "char" radix) |
out_long(self, v, radix) Output a number with appropriate color. | |
"bool" | out_name_expr (self, *args) |
out_name_expr(self, x, ea, off=BADADDR) -> bool Output a name expression. | |
"void" | close_comment (self) |
close_comment(self) | |
"bool" | flush_outbuf (self, "int" indent=-1) |
flush_outbuf(self, indent=-1) -> bool Functions to populate the output line array (lnar) Move the contents of the output buffer to the line array (outbuf->lnar) The kernel augments the outbuf contents with additional text like the line prefix, user-defined comments, xrefs, etc at this call. | |
"bool" | flush_buf (self, "char const *" buf, "int" indent=-1) |
flush_buf(self, buf, indent=-1) -> bool Append contents of 'buf' to the line array. | |
"int" | term_outctx (self, "char const *" prefix=None) |
term_outctx(self, prefix=None) -> int Finalize the output context. | |
"bool" | gen_printf (self, "int" indent, "char const *" format) |
gen_printf(self, indent, format) -> bool printf-like function to add lines to the line array. | |
"bool" | gen_empty_line (self) |
gen_empty_line(self) -> bool Generate empty line. | |
"bool" | gen_border_line (self, "bool" solid=False) |
gen_border_line(self, solid=False) -> bool Generate thin border line. | |
"bool" | gen_cmt_line (self, "char const *" format) |
gen_cmt_line(self, format) -> bool Generate one non-indented comment line, colored with COLOR_AUTOCMT. | |
"bool" | gen_collapsed_line (self, "char const *" format) |
gen_collapsed_line(self, format) -> bool Generate one non-indented comment line, colored with COLOR_COLLAPSED. | |
"bool" | gen_block_cmt (self, "char const *" cmt, "color_t" color) |
gen_block_cmt(self, cmt, color) -> bool Generate big non-indented comment lines. | |
"void" | setup_outctx (self, "char const *" prefix, "int" makeline_flags) |
setup_outctx(self, prefix, makeline_flags) Initialization; normally used only by the kernel. | |
"ssize_t" | retrieve_cmt (self) |
retrieve_cmt(self) -> ssize_t | |
"ssize_t" | retrieve_name (self, "qstring *" arg2, "color_t *" arg3) |
retrieve_name(self, arg2, arg3) -> ssize_t | |
"bool" | gen_xref_lines (self) |
gen_xref_lines(self) -> bool | |
"void" | init_lines_array (self, "qstrvec_t *" answers, "int" maxsize) |
init_lines_array(self, answers, maxsize) | |
"ssize_t" | get_stkvar (self, "op_t" x, "uval_t" v, "sval_t *" vv, "int *" is_sp_based, "tinfo_t" _frame) |
get_stkvar(self, x, v, vv, is_sp_based, _frame) -> ssize_t | |
"void" | gen_empty_line_without_annotations (self) |
gen_empty_line_without_annotations(self) | |
"flags64_t" | getF (self) |
getF(self) -> flags64_t | |
Static Public Attributes | |
str | insn_ea = property(_ida_ua.outctx_base_t_insn_ea_get, _ida_ua.outctx_base_t_insn_ea_set, doc=) |
str | outbuf = property(_ida_ua.outctx_base_t_outbuf_get, _ida_ua.outctx_base_t_outbuf_set, doc=) |
str | F32 = property(_ida_ua.outctx_base_t_F32_get, _ida_ua.outctx_base_t_F32_set, doc=) |
str | default_lnnum = property(_ida_ua.outctx_base_t_default_lnnum_get, _ida_ua.outctx_base_t_default_lnnum_set, doc=) |
Properties | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Reimplemented in outctx_t.
"void" close_comment | ( | self | ) |
"void" clr_gen_label | ( | self | ) |
"bool" display_voids | ( | self | ) |
"bool" flush_buf | ( | self, | |
"char const *" | buf, | ||
"int" | indent = -1 ) |
Behaves like flush_outbuf but accepts an arbitrary buffer
buf | (C++: const char *) char const * |
indent | (C++: int) |
"bool" flush_outbuf | ( | self, | |
"int" | indent = -1 ) |
indent | (C++: int) |
"int" forbid_annotations | ( | self | ) |
"bool" force_code | ( | self | ) |
"bool" gen_block_cmt | ( | self, | |
"char const *" | cmt, | ||
"color_t" | color ) |
cmt | (C++: const char *) comment text. may contain characters to denote new lines. should not contain comment character (;) |
color | (C++: color_t) color of comment text (one of Color tags) |
"bool" gen_border_line | ( | self, | |
"bool" | solid = False ) |
This function does nothing if generation of border lines is disabled.
solid | (C++: bool) generate solid border line (with =), otherwise with - |
"bool" gen_cmt_line | ( | self, | |
"char const *" | format ) |
format | (C++: const char *) printf() style format line. The resulting comment line should not include comment character (;) |
"bool" gen_collapsed_line | ( | self, | |
"char const *" | format ) |
format | (C++: const char *) printf() style format line. The resulting comment line should not include comment character (;) |
"bool" gen_empty_line | ( | self | ) |
This function does nothing if generation of empty lines is disabled.
"void" gen_empty_line_without_annotations | ( | self | ) |
"bool" gen_printf | ( | self, | |
"int" | indent, | ||
"char const *" | format ) |
indent | (C++: int) indention of the line. if indent == -1, the kernel will indent the line at idainfo::indent. if indent < 0, -indent will be used for indention. The first line printed with indent < 0 is considered as the most important line at the current address. Usually it is the line with the instruction itself. This line will be displayed in the cross-reference lists and other places. If you need to output an additional line before the main line then pass DEFAULT_INDENT instead of -1. The kernel will know that your line is not the most important one. |
format | (C++: const char *) printf style colored line to generate |
"bool" gen_xref_lines | ( | self | ) |
Reimplemented in outctx_t.
"ssize_t" get_stkvar | ( | self, | |
"op_t" | x, | ||
"uval_t" | v, | ||
"sval_t *" | vv, | ||
"int *" | is_sp_based, | ||
"tinfo_t" | _frame ) |
x | op_t const & |
v | uval_t |
vv | sval_t * |
is_sp_based | int * |
_frame | tinfo_t * |
"flags64_t" getF | ( | self | ) |
"void" init_lines_array | ( | self, | |
"qstrvec_t *" | answers, | ||
"int" | maxsize ) |
answers | qstrvec_t * |
maxsize | int |
"bool" multiline | ( | self | ) |
"bool" only_main_line | ( | self | ) |
"void" out_addr_tag | ( | self, | |
"ea_t" | ea ) |
ea | (C++: ea_t) |
"void" out_btoa | ( | self, | |
"uval_t" | Word, | ||
"char" | radix = 0 ) |
"void" out_char | ( | self, | |
"char" | c ) |
The character is output without color codes. see also out_symbol()
c | (C++: char) |
"void" out_chars | ( | self, | |
"char" | c, | ||
"int" | n ) |
c | (C++: char) |
n | (C++: int) |
"void" out_colored_register_line | ( | self, | |
"char const *" | str ) |
The register names will be substituted by user-defined names (regvar_t) Please note that out_tagoff tries to make substitutions too (when called with COLOR_REG)
str | (C++: const char *) char const * |
"void" out_keyword | ( | self, | |
"char const *" | str ) |
str | (C++: const char *) char const * |
"void" out_line | ( | self, | |
"char const *" | str, | ||
"color_t" | color = 0 ) |
str | (C++: const char *) char const * |
color | (C++: color_t) |
"void" out_long | ( | self, | |
"sval_t" | v, | ||
"char" | radix ) |
Low level function. Use out_value() if you can. if 'suspop' is set then this function uses COLOR_VOIDOP instead of COLOR_NUMBER. 'suspop' is initialized:
v | (C++: sval_t) value to output |
radix | (C++: char) base (2,8,10,16) |
"bool" out_name_expr | ( | self, | |
* | args ) |
x | (C++: const op_t &) instruction operand referencing the name expression |
ea | (C++: ea_t) address to convert to name expression |
off | (C++: adiff_t) the value of name expression. this parameter is used only to check that the name expression will have the wanted value. You may pass BADADDR for this parameter but I discourage it because it prohibits checks. |
"size_t" out_printf | ( | self, | |
"char const *" | format ) |
format | (C++: const char *) char const * |
"void" out_register | ( | self, | |
"char const *" | str ) |
str | (C++: const char *) char const * |
"void" out_spaces | ( | self, | |
"ssize_t" | len ) |
len | (C++: ssize_t) |
"void" out_symbol | ( | self, | |
"char" | c ) |
c | (C++: char) |
"void" out_tagoff | ( | self, | |
"color_t" | tag ) |
tag | (C++: color_t) |
"void" out_tagon | ( | self, | |
"color_t" | tag ) |
tag | (C++: color_t) |
"flags64_t" out_value | ( | self, | |
"op_t" | x, | ||
"int" | outf = 0 ) |
Try to use this function to output all constants of instruction operands. This function outputs a number from x.addr or x.value in the form determined by F. It outputs colored text.
x | (C++: const op_t &) value to output |
outf | (C++: int) Output value flags |
"bool" print_label_now | ( | self | ) |
"void" restore_ctxflags | ( | self, | |
"int" | saved_flags ) |
saved_flags | int |
"ssize_t" retrieve_cmt | ( | self | ) |
Reimplemented in outctx_t.
"ssize_t" retrieve_name | ( | self, | |
"qstring *" | arg2, | ||
"color_t *" | arg3 ) |
arg2 | qstring * |
arg3 | color_t * |
Reimplemented in outctx_t.
"void" set_comment_addr | ( | self, | |
"ea_t" | ea ) |
ea | ea_t |
"void" set_dlbind_opnd | ( | self | ) |
"void" set_gen_cmt | ( | self, | |
"bool" | on = True ) |
on | bool |
"void" set_gen_demangled_label | ( | self | ) |
"void" set_gen_label | ( | self | ) |
"void" set_gen_xrefs | ( | self, | |
"bool" | on = True ) |
on | bool |
"void" setup_outctx | ( | self, | |
"char const *" | prefix, | ||
"int" | makeline_flags ) |
prefix | (C++: const char *) char const * |
makeline_flags | (C++: int) |
Reimplemented in outctx_t.
"bool" stack_view | ( | self | ) |
"int" term_outctx | ( | self, | |
"char const *" | prefix = None ) |
prefix | (C++: const char *) char const * |
Reimplemented in outctx_t.
|
static |
|
static |
|
static |
|
static |
|
static |