Linux2009.04.24 14:56
$ addr2line --help
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>
  -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
  -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

addr2line: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little elf32-big srec symbolsrec tekhex binary ihex trad-core
Report bugs to <URL:http://www.sourceware.org/bugzilla/> and hjl@lucon.org

$ addr2line -e a.out -f 0xaaaaaaa
이런식으로 사용하면 함수 이름이 뿅 하고 나오나?

[발견  :  http://blog.naver.com/carnola?Redirect=Log&logNo=70033330562]
Posted by 구차니
TAG

댓글을 달아 주세요