teak-llvm/lldb/packages/Python/lldbsuite/test
Dave Lee 8ab5c2db8a Fix and simplify lldb.command decorator
Summary:
This change fixes one issue with `lldb.command`, and also reduces the implementation.

The fix: a command function's docstring was not shown when running `help <command_name>`. This is because the docstring attached the source function is not propagated to the decorated function (`f.__call__`). By returning the original function, the docstring will be properly displayed by `help`.

Also with this change, the command name is assumed to be the function's name, but can still be explicitly defined as previously.

Additionally, the implementation was updated to:

* Remove inner class
* Remove use of `inspect` module
* Remove `*args` and `**kwargs`

Reviewers: clayborg

Reviewed By: clayborg

Subscribers: keith, xiaobai, lldb-commits

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

llvm-svn: 336287
2018-07-04 16:11:43 +00:00
..
android/platform Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
api [test] Replace some references to Apple-internal bugs 2018-03-13 23:37:11 +00:00
arm ObjectFileELF: Add support for arbitrarily named code sections 2018-04-30 13:23:47 +00:00
attic
benchmarks Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
driver/batch_mode Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
expression_command IRInterpreter: fix sign extension of small types (pr37840) 2018-06-20 10:45:29 +00:00
functionalities Fix and simplify lldb.command decorator 2018-07-04 16:11:43 +00:00
help Fix the formatting for help on option value types. 2017-07-27 00:18:18 +00:00
issue_verification
lang [lldbsuite, windows] Don't crash LLDB when we try to retrieve a register on Windows 2018-07-02 21:50:31 +00:00
linux Revert "[LLDB] Support GNU-style compressed debug sections (.zdebug)" 2018-05-12 01:25:48 +00:00
logging Last batch of test-tree cleaning changes 2018-03-21 15:29:32 +00:00
macosx Fix silly error introduced after testing in r333813. 2018-06-02 04:00:16 +00:00
make Android.rules: Use libc++ by default 2018-06-22 13:13:29 +00:00
plugins [LLDB] Unit tests basic support for OpenBSD 2018-06-04 11:59:18 +00:00
python_api Add new API to SBTarget and SBModule classes. 2018-07-03 14:22:44 +00:00
sample_test Add a lldbutils routine that gathers up the boiler-plate 2017-07-06 02:18:16 +00:00
settings Fix the .experimental. settings feature so that we don't return an error 2018-05-01 22:49:01 +00:00
source-manager Last batch of test-tree cleaning changes 2018-03-21 15:29:32 +00:00
terminal Next batch of test-tree-cleaning changes 2018-03-15 13:47:09 +00:00
test_runner NFC: Fix some comment typos. 2018-05-28 04:22:07 +00:00
tools [lldb-mi] Re-implement symbol-list-lines command. 2018-07-03 15:40:20 +00:00
types Make test sources compatible with android+libcxx+modules 2018-06-20 17:32:48 +00:00
warnings/uuid [dotest] Clean up test folder clean-up 2018-03-16 12:04:46 +00:00
__init__.py
.categories
bench.py Remove obsolete file 2018-02-06 21:04:06 +00:00
concurrent_base.py Move "concurrent events" tests back into one folder 2018-02-27 02:01:30 +00:00
configuration.py Remove vestigial remnants of the test crash info hook 2018-02-14 16:08:26 +00:00
darwin_log.py Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
decorators.py Skip core file tests on build configurations lacking necessary components 2018-06-28 14:23:04 +00:00
dosep.py Two more dosep-paralellization fallout fixes 2018-02-19 17:23:13 +00:00
dotest_args.py [dotest] Fix syntax error and typo. 2018-04-12 09:35:17 +00:00
dotest.py [lit, lldbsuite] Add a bug reference to the failing TestLinuxCore and fix an undefined property in dotest.py 2018-05-09 15:35:19 +00:00
lldb_pylint_helper.py
lldbbench.py
lldbcurses.py
lldbdwarf.py [LLDB][MIPS] Fix TestLldbGdbServer failure for MIPS 2017-01-10 09:33:43 +00:00
lldbinline.py dotest: make inline tests compatible with -f 2018-06-05 10:58:44 +00:00
lldbpexpect.py
lldbplatform.py Initial patchset to get the testsuite running against armv7 and arm64 iOS devices. 2017-09-25 18:19:39 +00:00
lldbplatformutil.py Adapt some tests to work with PPC64le architecture 2018-02-28 20:57:26 +00:00
lldbtest_config.py [test] Skip a test when using an out-of-tree debugserver 2018-03-08 19:46:39 +00:00
lldbtest.py [lit] Split test_set_working_dir TestProcessLaunch into two tests and fix it on Windows 2018-06-13 19:02:44 +00:00
lldbutil.py Allow relative file paths when settings source breakpoints 2018-04-13 14:52:54 +00:00
lock.py
Makefile
README-TestSuite Add a sample_test directory with simple starter 2017-03-01 20:25:48 +00:00
redo.py
test_categories.py Disable gmodules tests on linux 2018-06-21 13:55:19 +00:00
test_result.py Remove vestigial remnants of the test crash info hook 2018-02-14 16:08:26 +00:00