Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 脚本对 addr2line 输出的处理,遗漏了函数信息 #49

Open
myzhan opened this issue Jun 7, 2024 · 3 comments
Open

Comments

@myzhan
Copy link

myzhan commented Jun 7, 2024

目前是这样,第二行只有文件名

def addr_to_line(address, symbol_path):
    # for aarch64
    status, output = subprocess.getstatusoutput('aarch64-linux-android-addr2line -C -e %s -f %s' % (symbol_path, address))
    if status != 0:
        print(output)
        raise Exception('execute [aarch64-linux-android-addr2line -C -e %s -f %s] failed' % (symbol_path, address))
    return output.split('\n')[1]
def addr_to_line(address, symbol_path):
    # for aarch64
    status, output = subprocess.getstatusoutput('aarch64-linux-android-addr2line -C -e %s -f %s' % (symbol_path, address))
    if status != 0:
        print(output)
        raise Exception('execute [aarch64-linux-android-addr2line -C -e %s -f %s] failed' % (symbol_path, address))
    lines = output.split('\n')
    return "\t".join(lines)

建议改成这样,把函数名也带上,避免部分情况,只有函数名,没有文件名的时候,显示信息不全。

@WangHHY19931001
Copy link
Contributor

看起来你可以提交一个pr

@myzhan
Copy link
Author

myzhan commented Nov 8, 2024

这个项目感觉已经不维护了。

@WangHHY19931001
Copy link
Contributor

这个项目感觉已经不维护了。

疑似原来的团队没了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants