Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use linux's addr2line command function address resolution tool

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about the use of linux addr2line command function address resolution tool, Xiaobian think quite practical, so share to you as a reference, I hope you can read this article after harvest.

The addr2line command translates addresses into file names and line numbers. Given an address in an executable file or an offset in a relocatable object, it uses debug information to find the file name and line number associated with it.

Syntax format: addr2line [parameter] [address]

Common parameters:

Reference Example

Use the-f and-e arguments to display function name information along with file name and line number output information:

[root@linuxcool ~]# addr2line -f -e android/obj/local/armeabi/libvitae.so

Use the-a argument to display the address, in hexadecimal form, before the function name, file, and line number information:

[root@linuxcool ~]# addr2line -a linuxcool

Use some parameters of addr2line to locate the code:

[root@linuxcool ~]# addr2line 0x 000000004005 e7 -e test -f -C -s about using linux addr2line command function address resolution tool to share here, I hope the above content can have some help for everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report