Linux addr2line命令,linuxaddr2line命令

來源:互聯網
上載者:User

Linux addr2line命令,linuxaddr2line命令

一、簡介

Addr2line (它是標準的 GNU Binutils 中的一部分)是一個可以將指令的地址和可執行映像轉換成檔案名稱、函數名和原始碼行數的工具。這種功能對於將跟蹤地址轉換成更有意義的內容來說簡直是太棒了。

 

二、選項

Usage: addr2line [option(s)] [addr(s)] Convert addresses into line number/file name pairs. If no addresses are specified on the command line, they will be read from stdin The options are:  @<file>                Read options from <file>  -a --addresses         Show addresses  -b --target=<bfdname>  Set the binary file format  -e --exe=<executable>  Set the input file name (default is a.out)  -i --inlines           Unwind inlined functions  -j --section=<name>    Read section-relative offsets instead of addresses  -p --pretty-print      Make the output easier to read for humans  -s --basenames         Strip directory names  -f --functions         Show function names  -C --demangle[=style]  Demangle function names  -h --help              Display this information  -v --version           Display the program's version

 

三、執行個體

http://blog.csdn.net/whz_zb/article/details/7604760
 
http://www.linuxidc.com/Linux/2011-05/35780.htm

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.