llvm-capstone/lldb/examples
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
..
customization *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
darwin/heap_find Work around a bug in the C++ expression parser. 2017-10-05 01:00:29 +00:00
functions *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
interposing/darwin/fd_interposing *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lookup *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
plugins/commands *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
python Added a BSD archive tool. 2018-04-02 17:20:21 +00:00
scripting *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
summaries *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
synthetic Update tuple/list/deque data formatters to work with newest libc++ 2017-11-07 22:17:29 +00:00
test