Tekkaman

导航

 

Mac之debuging symbol

 1、Overview

  debugging symbol is a symbol generated by the compiler that allows the debugger to map from addresses in machine code to locations in source code. The standard compilers generate debugging symbols using either the Stabs format or the DWARF format (supported in Xcode 2.4 and later). When using the Stabs format, debugging symbols, like other symbols, are stored in the symbol table . But with the DWARF format, debugging symbols are stored in a specialized segment: the __DWARF segment. With DWARF you also have the option of storing debugging symbols in a separate debug-information file, which reduces the size of the binary files while permitting a full debugging experience when the corresponding debug-information files are available.

 2、Practice

  每一个APP的可执行Macho-O的.dSYM包内饮食了DWARD Macho-O文件。通过LOAD-COMMADN中的LC_UUID来匹配。

posted on 2013-03-06 12:28  Tekkaman  阅读(260)  评论(0编辑  收藏  举报