render: verbose: render call address

closes #1702
This commit is contained in:
Willi Ballenthin
2023-08-11 09:02:29 +00:00
committed by GitHub
parent 6de23a9748
commit dafbefb325

View File

@@ -71,6 +71,10 @@ def format_address(address: frz.Address) -> str:
tid = address.value
assert isinstance(tid, int)
return f"thread id: {tid}"
elif address.type == frz.AddressType.CALL:
assert isinstance(address.value, tuple)
ppid, pid, tid, id_ = address.value
return f"process ppid: {ppid}, process pid: {pid}, thread id: {tid}, call: {id_}"
elif address.type == frz.AddressType.NO_ADDRESS:
return "global"
else: