hwangcc23 / ptm2human

ARM PTM decoder, and ARM ETM v4 decoder. ptm2human is a decoder for trace data outputted by Program Trace Macrocell (PTM) and Embedded Trace Macrocell (ETMv4).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Enhancement] translate the traced address to the source file and the line number

hwangcc23 opened this issue · comments

Provide a built-in addr2line function.
Survey if there is any open source library or write one (libaddr2line).

addr2line from binutils isnt't enough?
http://elinux.org/Addr2line_for_kernel_debugging

It would be better to have each address translated to the source file/line number in the output directly rather than translate each of them manually via addr2line.

one option is to call addr2line
second is to 'reuse' addr2line code (addr2line.c is not big file) :)