aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@fb.com>2020-02-19 17:31:27 -0800
committerGreg Clayton <gclayton@fb.com>2020-02-25 21:11:05 -0800
commit2f6cc21f44ec9f1c3196555d2ac95dd96c48903f (patch)
treea69d311033eb955da663ecb0cc86b1c6f8212035 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parent181628b52d390f2136fb5a63fe644d230a9b822d (diff)
downloadllvm-2f6cc21f44ec9f1c3196555d2ac95dd96c48903f.zip
llvm-2f6cc21f44ec9f1c3196555d2ac95dd96c48903f.tar.gz
llvm-2f6cc21f44ec9f1c3196555d2ac95dd96c48903f.tar.bz2
Add a llvm-gsymutil tool that can convert object files to GSYM and perform lookups.
Summary: This patch creates the llvm-gsymutil binary that can convert object files to GSYM using the --convert <path> option. It can also dump and lookup addresses within GSYM files that have been saved to disk. To dump a file: llvm-gsymutil /path/to/a.gsym To perform address lookups, like with atos, on GSYM files: llvm-gsymutil --address 0x1000 --address 0x1100 /path/to/a.gsym To convert a mach-o or ELF file, including any DWARF debug info contained within the object files: llvm-gsymutil --convert /path/to/a.out --out-file /path/to/a.out.gsym Conversion highlights: - convert DWARF debug info in mach-o or ELF files to GSYM - convert symbols in symbol table to GSYM and don't convert symbols that overlap with DWARF debug info - extract UUID from object files - extract .text (read + execute) section address ranges and filter out any DWARF or symbols that don't fall in those ranges. - if .text sections are extracted, and if the last gsym::FunctionInfo object has no size, cap the size to the end of the section the function was contained in Dumping GSYM files will dump all sections of the GSYM file in textual format. Reviewers: labath, aadsm, serhiy.redko, jankratochvil, xiaobai, wallace, aprantl, JDevlieghere, jdoerfert Subscribers: mgorny, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74883
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions