Skip to content

user addr2line to print filename:line number info instead of hex address #42

@yanyh15

Description

@yanyh15

If the traced program is compiled with -g, we can use addr2line to output the line number of the code instead of hex address. We should implement this in the tracing script and ideally, we should has the mapping ready for viewing. We will need to see how we can automate this.

yanyh@lynx:~/tools/pinsight$ addr2line -a 0x402f23 -e test/lulesh/lulesh
0x0000000000402f23
/home/yanyh/tools/pinsight/test/lulesh/lulesh.cc:1121

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions