addr2line 사용법

Posted at 2009/03/31 15:37 // in Tips/Utility programs // by Daniel

addr2line은 PC값으로 프로그램의 수행 라인을 찾아주는 프로그램입니다.

예를 들어

$ addr2line -e FFT 0000abe0
-->
/home/danielsong/examples/splash2/codes/kernels/fft_pthread/fft.c:341

이런 식으로 나옵니다.

또는 줄줄이 입력할 수 있는데, 파일을 리디렉션 해서 쓸 수 있습니다.

$ cat trace.txt | addr2line -e FFT
-->

/home/danielsong/examples/splash2/codes/kernels/fft_pthread/fft.c:459
/home/danielsong/examples/splash2/codes/kernels/fft_pthread/fft.c:459
/home/danielsong/examples/splash2/codes/kernels/fft_pthread/fft.c:467
/home/danielsong/examples/splash2/codes/kernels/fft_pthread/fft.c:468
...

kldp의 addr2line man page에서는 이와 같이 나옵니다.

크리에이티브 커먼즈 라이센스
Creative Commons License

이 글에는 트랙백을 보낼 수 없습니다

  1. 비밀방문자

    2010/01/29 00:45 [수정/삭제] [답글]

    관리자만 볼 수 있는 댓글입니다.

  2. 비밀방문자

    2010/01/30 02:20 [수정/삭제] [답글]

    관리자만 볼 수 있는 댓글입니다.