[PATCH] D68744: [GSYM] Add GsymCreator and GsymReader.

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 16:49:23 PDT 2019


clayborg created this revision.
clayborg added reviewers: aprantl, JDevlieghere, vsk, MaskRay, lemo, phosek, echristo, jakehehrlich.
Herald added subscribers: mgrang, mgorny.

This patch adds the ability to create GSYM files with GsymCreator, and read them with GsymReader. Full testing has been added for both new classes.

This patch differs from the original patch https://reviews.llvm.org/D53379 in that is uses a StringTableBuilder class from llvm instead of a custom version. Support for big and little endian files has been added. If the endianness matches the current host, we use efficient extraction for the header, address table and address info offset tables.


https://reviews.llvm.org/D68744

Files:
  include/llvm/DebugInfo/GSYM/FileWriter.h
  include/llvm/DebugInfo/GSYM/GsymCreator.h
  include/llvm/DebugInfo/GSYM/GsymReader.h
  include/llvm/DebugInfo/GSYM/Header.h
  lib/DebugInfo/GSYM/CMakeLists.txt
  lib/DebugInfo/GSYM/GsymCreator.cpp
  lib/DebugInfo/GSYM/GsymReader.cpp
  lib/DebugInfo/GSYM/Header.cpp
  unittests/DebugInfo/GSYM/CMakeLists.txt
  unittests/DebugInfo/GSYM/GSYMTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68744.224204.patch
Type: text/x-patch
Size: 50954 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191009/6283a117/attachment.bin>


More information about the llvm-commits mailing list