Public Member Functions | |
def | __init__ |
def | add_label |
def | remove_label |
def | del_label_offset |
def | getby_offset |
def | getby_name |
def | getby_name_create |
def | getby_offset_create |
def | rename_label |
def | set_offset |
def | items |
def | __str__ |
def | __getitem__ |
def | __contains__ |
def | merge |
def | gen_label |
Private Attributes | |
_labels | |
_name2label | |
_offset2label | |
_label_num | |
Definition at line 222 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.__init__ | ( | self | ) |
Definition at line 224 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.__contains__ | ( | self, | |
item | |||
) |
Definition at line 330 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.__getitem__ | ( | self, | |
item | |||
) |
Definition at line 323 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.__str__ | ( | self | ) |
Definition at line 320 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.add_label | ( | self, | |
name, | |||
offset = None |
|||
) |
Create and add a label to the symbol_pool @name: label's name @offset: (optional) label's offset
Definition at line 230 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.del_label_offset | ( | self, | |
label | |||
) |
def miasm2.core.asmbloc.asm_symbol_pool.gen_label | ( | self | ) |
def miasm2.core.asmbloc.asm_symbol_pool.getby_name | ( | self, | |
name | |||
) |
def miasm2.core.asmbloc.asm_symbol_pool.getby_name_create | ( | self, | |
name | |||
) |
Get a label from its @name, create it if it doesn't exist
Definition at line 277 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.getby_offset | ( | self, | |
offset | |||
) |
def miasm2.core.asmbloc.asm_symbol_pool.getby_offset_create | ( | self, | |
offset | |||
) |
Get a label from its @offset, create it if it doesn't exist
Definition at line 284 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.items | ( | self | ) |
Return all labels
Definition at line 316 of file asmbloc.py.
def miasm2.core.asmbloc.asm_symbol_pool.merge | ( | self, | |
symbol_pool | |||
) |
def miasm2.core.asmbloc.asm_symbol_pool.remove_label | ( | self, | |
label | |||
) |
def miasm2.core.asmbloc.asm_symbol_pool.rename_label | ( | self, | |
label, | |||
newname | |||
) |
def miasm2.core.asmbloc.asm_symbol_pool.set_offset | ( | self, | |
label, | |||
offset | |||
) |
Pin the @label from at @offset Note that there is a special case when the offset is a list it happens when offsets are recomputed in resolve_symbol*
Definition at line 299 of file asmbloc.py.
|
private |
Definition at line 228 of file asmbloc.py.
|
private |
Definition at line 225 of file asmbloc.py.
|
private |
Definition at line 226 of file asmbloc.py.
|
private |
Definition at line 227 of file asmbloc.py.