'addr2line'에 해당되는 글 1건

  1. 2009.04.24 addr2line을 이용한 Fixing up unaligned userspace access 추적
Linux2009. 4. 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 구차니