hanchenye-llvm-project/lldb
Greg Clayton de01668b14 Added a BSD archive tool.
This is a combination stand alone BSD archive tool that can dump BSD archives:

% bsd.py /path/to/foo.a

Search archives for an object file:

% bsd.py --object foo.o bar.a

Dump the symbol definitions found in the __.SYMDEF objects:

% bsd.py --symdef bar.a

Find symbols by name that are listed in the __.SYMDEF objects:

% bsd.py --symbol _Z123 bar.a

Extract objects from BSD archives:

% bsd.py --object foo.o bar.a --extract
% bsd.py --object foo.o bar.a --extract --outfile /tmp/foo.o
% bsd.py --object foo.o bar.a --extract --mtime 0x1234556

It also has installs a new LLDB command line command when imported into LLDB:

(lldb) command script import ~/Dropbox/bin/bsd.py
The "verify-debug-map-objects" command has been installed, type "help verify-debug-map-objects" for detailed help.
(lldb) verify-debug-map-objects a.out

This will iterate through all object files and verify the modification times match for any .o files, it will verify any .o files from BSD archives are found and have matching modification times and print out errors if any are found.

llvm-svn: 328990
2018-04-02 17:20:21 +00:00
..
cmake [cmake] Fix standalone+LLVM_LINK_LLVM_DYLIB builds (pr36687) 2018-03-14 10:08:21 +00:00
docs Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
examples Added a BSD archive tool. 2018-04-02 17:20:21 +00:00
include/lldb [Core] Grab-bag of improvements for Scalar. 2018-04-02 16:50:54 +00:00
lit [ExpressionParser] Re-implement r327356 in a less disruptive way. 2018-03-20 19:46:32 +00:00
lldb.xcodeproj Remove CommandObjectStats.cpp & CleanUpTest.cpp from 2018-03-23 23:32:16 +00:00
lldb.xcworkspace
packages/Python/lldbsuite Support template template parameters 2018-04-02 16:18:32 +00:00
resources
scripts Fix the install location of LLDBWrapPython.cpp when building 2018-03-05 21:08:42 +00:00
source [Core] Grab-bag of improvements for Scalar. 2018-04-02 16:50:54 +00:00
test [test] Exit lldb-dotest in a more Pythonic way. 2018-04-02 10:44:36 +00:00
third_party/Python/module
tools Prevent double release of mach ports 2018-03-29 03:49:41 +00:00
unittests [Core] Grab-bag of improvements for Scalar. 2018-04-02 16:50:54 +00:00
utils
www Add a suggestion to convert dotest tests to use run_to_source_breakpoint. 2018-03-20 02:15:23 +00:00
.arcconfig
.clang-format
.gitignore [dotest] Remove crashinfo hook 2018-01-10 10:18:47 +00:00
CMakeLists.txt [lit] Update how clang and other binaries are found in per-configuration directories 2018-02-21 00:05:51 +00:00
CODE_OWNERS.txt
INSTALL.txt
LICENSE.TXT
use_lldb_suite_root.py