interact with addr2line command
pip install addr2line
python -m unittest discover tests
with Addr2lineContext(Path("tests/source.out")) as c:
self.assertEqual(
c.get_function(0x1189),
"function3",
)
self.assertEqual(
c.get_function(0x11a8),
"main",
)