Extend 'target symbols add' to load symbols from a given module
authorEugene Zemtsov <ezemtsov@google.com>
Mon, 24 Jul 2017 22:52:39 +0000 (22:52 +0000)
committerEugene Zemtsov <ezemtsov@google.com>
Mon, 24 Jul 2017 22:52:39 +0000 (22:52 +0000)
commit7cff7d466413b4c9634b6f84335e6baeff232929
tree9a84c6bf79cf40e326967b0f30d39878c701f5b3
parent3e2ef40812204da7098c917c37ad4c8306fb65c7
Extend 'target symbols add' to load symbols from a given module

Now -shlib flag can be provided alongside with names of symbols files:

(lldb) target symbols add --shlib stripper-lib.so unstripper-lib.so

This is helpful when default matching mechanisms by name and UUID
can't find a module, and the user needs to explicitly specify
which module the given symbol file belongs to.

Differential Revision: https://reviews.llvm.org/D35607

llvm-svn: 308933
lldb/packages/Python/lldbsuite/test/linux/add-symbols/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/linux/add-symbols/TestTargetSymbolsAddCommand.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/linux/add-symbols/main.c [new file with mode: 0644]
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Interpreter/CommandObject.cpp