def test_fixup_calling_other_fn(self): self.assertEqual( ObjDump.fixup_disasm( 'callq 3e1 <_ZL11ignore_bb_pPK15basic_block_def>', None, self.demangler), 'callq <ignore_bb_p(basic_block_def const*)>')
def test_fixup_within_fn(self): self.assertEqual( ObjDump.fixup_disasm( 'mov 0x0(%rip),%rax # 78e <tracer_state::find_trace(basic_block_def*, basic_block_def**)+0x1e>', 'tracer_state::find_trace(basic_block_def*, basic_block_def**)', self.demangler), 'mov 0x0(%rip),%rax # THIS_FN+0x1e')